occasional ECONNREFUSED when connect()ing.
Deomid Ryabkov
myself at rojer.pp.ru
Fri Feb 18 06:38:26 PST 2005
ALeine wrote:
>>After further investigation and digging, I uncovered the true cause of
>>the error: connect() returning ECONNREFUSED.
>>
>>
>
>You are probably exhausting the queue of pending connections, you may want
>to read man 2 listen and use sysctl to set kern.ipc.somaxconn accordingly.
>
>
no, can't be.
server and client are completely synchronous, in the sense that there
are no pending requests at all.
new connection is opened only after previos has been closed.
besides, i set backlog = 511 when calling listen().
kern.ipc.somaxconn is 128, but you see that errors start to appear even
before that number of requests.
--
Deomid Ryabkov aka Rojer
myself at rojer.pp.ru
rojer at sysadmins.ru
ICQ: 8025844
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3228 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050218/f9893f21/smime.bin
More information about the freebsd-hackers
mailing list