Re: connect() returns EADDRINUSE during massive host->host conn rate



On Wed, Nov 28, 2007 at 10:42:59AM -0800, Julian Elischer wrote:
Jan Srzednicki wrote:
On Wed, Nov 28, 2007 at 10:22:08AM -0800, Julian Elischer wrote:
How can I get any usable information from netstat? It shows a bunch of
connections, of course, but since connect(2) failed, I have no idea what
local port I was trying to use.
but you can get an idea of the local socket distribution, and what state
all the sockets are in (TIME_WAIT etc).

Most of the relevant sockets (that is, between the two host mentioned)
are in the ESTABLISHED state (200-400 of those). Only 20-40 are in
TIME_WAIT state (these tend to be from a more ephemeric POP3 service). Most
of the EADDRINUSE happen for the IMAP4 service.

--
Jan Srzednicki :: http://wrzask.pl/
"Remember, remember, the fifth of November"
-- V for Vendetta

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: connect() returns EADDRINUSE during massive host->host conn rate
    ... It shows a bunch of ... connections, of course, but since connectfailed, I have no idea what ... Most of the relevant sockets ... TIME_WAIT state (these tend to be from a more ephemeric POP3 service). ...
    (freebsd-net)
  • sockets, closing and TIME_WAIT
    ... During heavy load the server can't follow anymore because the sockets ... my server should be able to handle 10 clients connecting ... This gets a free position in the array of connections, ...
    (comp.unix.programmer)
  • Re: network programming: how does s.accept() work?
    ... The program you contact at Google is a server. ... so, the server will usually assign a new port, say 56399, specifically ... connections to a server remain on the same port, ... sockets is what identifies them. ...
    (comp.lang.python)
  • Re: FOAK: ADSL Micro Filters
    ... what is the REN total of the units plugged into the sockets. ... I've always had terrible problems with our connections, ... and whether the new adsl modem was connected or not. ... IIRC to use UK bought phones in France, ...
    (uk.rec.motorcycles)
  • socket_select() hangs sometimes; Bug?
    ... socket_selectfor accepting new connections and dealing with existing ... The select runs on all connected sockets for read and ... the server hangs after some time. ...
    (php.general)