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


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

Reply via email to