Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2005 12:18:25 +0300
From:      Rojer <myself@rojer.pp.ru>
To:        Maxim Konovalov <maxim@macomnet.ru>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: occasional ECONNREFUSED when connect()ing.
Message-ID:  <42170461.6040202@rojer.pp.ru>
In-Reply-To: <20050219090855.C94145@mp2.macomnet.net>
References:  <4215EB31.8020107@rojer.pp.ru> <20050218232313.GA80993@cirb503493.alcatel.com.au> <42169BBD.1060704@rojer.pp.ru> <20050219090855.C94145@mp2.macomnet.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
>>>>I have a strange case of occasional refused connect()'s.
>>>>The system is running 4.10-STABLE.
>>>>
>>>...
>>>
>>>>The question is - why do connections get refused at all?
>>>>I can think of no valid reasons...
>>>
>>>FWIW, I can't either.  The client is single-threaded so it's difficult
>>>to see why this should occur.  Unfortunately, I don't have ready
>>>access to a 4.x system with perl 5.8 but I don't see the problem with
>>>FreeBSD 5.3.
>>
>>problem solved by upgrading system to 4.11-STABLE.
>>
>>the problem is specific to 4.10:
>>it does NOT show up on any of 3 systems running
>>FreeBSD 4.9-STABLE #4: Mon Nov 10 18:47:10 MSK 2003
>>it DOES, however, show up on every one of 3 other systems, running
>>FreeBSD 4.10-STABLE #10: Wed Aug  4 18:42:45 MSD 2004
>>and, as i said, it seems to have had been fixed somewhere before
>>FreeBSD 4.11-STABLE #12: Sun Jan 23 14:09:07 MSK 2005
>>
>>i don't feel like diving deep into the issue here... thanks everyone :)
> 
> 
> [Haven't read your code]
> 
> Try to turn net.inet.ip.portrange.randomized off.
> 

yes, this does solve the problem on 4.10-STABLE.

thanks, Maxim :)

mink[/home/rojer]# uname -rms
FreeBSD 4.10-STABLE i386
mink[/home/rojer]# ./x.pl
24045, http://localhost:8000/junk, 2000: starting.
42 500 Can't connect to localhost:8000 (Timeout)
397 500 Can't connect to localhost:8000 (Timeout)
478 500 Can't connect to localhost:8000 (Timeout)
1303 500 Can't connect to localhost:8000 (Timeout)
1746 500 Can't connect to localhost:8000 (Timeout)
mink[/home/rojer]# sysctl -w net.inet.ip.portrange.randomized=0
net.inet.ip.portrange.randomized: 1 -> 0
mink[/home/rojer]# ./x.pl
24056, http://localhost:8000/junk, 2000: starting.
mink[/home/rojer]# ./x.pl
24077, http://localhost:8000/junk, 2000: starting.
mink[/home/rojer]# ./x.pl
24080, http://localhost:8000/junk, 2000: starting.
mink[/home/rojer]#

-- 
Deomid Ryabkov aka Rojer
myself@rojer.pp.ru
rojer@sysadmins.ru
ICQ: 8025844

[-- Attachment #2 --]
0	*H
010	+0	*H
	#00U
v0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
040331221809Z
050331221809Z0_10URyabkov10
U*Deomid10UDeomid Ryabkov1!0	*H
	myself@rojer.pp.ru0"0
	*H
0
x?ed:4y h"0$F;O 4{7k΢U-)A
{ ;qrk,6s+ZȀ&Qvi)ZRu%0 	@<r\=/)NK4풓d|$_&aNq!ڨ66.ʺ`WPFmd;,H,ؑPd0!J5SـdPIK3@]42g
򎼸\i3/0-0U0myself@rojer.pp.ru0U00
	*H
+~4YXf
DW?%\;҇B2n
Ϸ|Jճ2++fZ7[m~X㽀c6x*2%^LnmoUkQ|Z>?X\uɝp/:00U
v0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
040331221809Z
050331221809Z0_10URyabkov10
U*Deomid10UDeomid Ryabkov1!0	*H
	myself@rojer.pp.ru0"0
	*H
0
x?ed:4y h"0$F;O 4{7k΢U-)A
{ ;qrk,6s+ZȀ&Qvi)ZRu%0 	@<r\=/)NK4풓d|$_&aNq!ڨ66.ʺ`WPFmd;,H,ؑPd0!J5SـdPIK3@]42g
򎼸\i3/0-0U0myself@rojer.pp.ru0U00
	*H
+~4YXf
DW?%\;҇B2n
Ϸ|Jճ2++fZ7[m~X㽀c6x*2%^LnmoUkQ|Z>?X\uɝp/:0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1;070i0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA
v0	+0	*H
	1	*H
0	*H
	1
050219091825Z0#	*H
	1@_<qW/K۴i0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0x	+71k0i0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA
v0z*H
	1ki0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA
v0
	*H
Z6*΀L֛IbC~	sVvPQ	kX0#5 ņwb׈rXod5ųGP}C(&Kۤ¯ةT!ˡ۠Z {;^_P''VZ,(JPItR07G$IQ֠ZZv!R8Q,/p4s_^'Ηw렠~rE-z*NG4r.]琒ߟ/
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42170461.6040202>