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
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ: 8025844

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to