Front page | perl.libwww |
Postings from December 2001
From: Jim Flanagan
December 5, 2001 09:11
Message ID: firstname.lastname@example.org
--On Wednesday, December 5, 2001 7:54 AM -0800 Benjamin Franks
> I'm using the LWP::UserAgent for a small tcp/ip client/server
> application I've written. All that the client does is query a small
> http server I've written on a different host. It works.
> However, after a couple thousand connections, I notice the client(s)
> stop getting info from the server. They continue to run, but when I
> look at netstat, I see a high number of clients stuck in the
> FIN_WAIT_2 state (the second part of the disconnection sequence).
> They don't seem to come out of this state. Concurrent with this
> problem, I notice error messages from the client something like:
The FIN_WAIT_2 states will eventually time out, but you are probably
getting connections faster than they are timing out (generally 4 minutes).
The reason you get these is you are closing the connection at the server
side. If you let the client close the connection you will not get these
(the client will instead).
Of course, because your server is single-threaded, a client could
possibly hold up the whole process.