Laura Werner wrote:

Leo Galambos wrote:

I am using httpclient (HC) in a webcrawler. After 6 hours of run, HC stops working and I think, it is locked by some lock of a critical section in HC. The "problematic" code, I use, is here: http://www.egothor.org/temp/Network.java


Are you running on Windows by any chance? It has a "feature" where the OS waits a very long time before deciding that half-closed sockets are really dead, so you can end up with lots of sockets in TIME_WAIT or CLOSE_WAIT states. There's a registry setting you can change to adjust the timeout down to a more reasonable value. This doesn't sound exactly like what you're seeing, but I thought I'd throw it out there...


Unfortunately, I do not use MS-Windows. I have nothing against TIME_WAIT sockets, my problem is that httpclient stops operate (all threads are locked somewhere in HC) and those sockets may be the key. As you see, their data stacks are not empty - it implies, that httpclient did not read the data, and it also shows where the library may be locked.

Leo



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to