Re: [gnet] Hammering a TCP socket



TIME_WAIT is normal:
http://www.skynet.ie/~heathclf/fyp/fyp-interim/node13.html
(or Stevens p 38)

Are you sure the app is crashing with no file descriptors? In this case, something isn't getting closed (or deleted).

David


On Aug 19, 2005, at 9:33 AM, Tim Fulcher - Clickatell wrote:

Hi all
 
Please forgive me if this is a stupid question.
 
I've worked my way though most of the TCP examples and found that when I try and push a lot of data into a socket the examples will eat up a lot of, what I assume to be fille descriptors. Given enough time the app will crash when its exhausted all the available descriptors. When I do a netstat, this is what I get.
 
 
tcp        0      0 localhost.localdo:58549 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58548 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58551 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58550 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58545 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58544 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58546 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58541 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58540 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58543 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58542 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58537 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58536 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58539 localhost.localdom:7500 TIME_WAIT tcp        0      0 localhost.localdo:58539 localhost.localdom:7500 TIME_WAIT
 
 
Is there any way around this problem?
 --
David Helder - dhelder gizmolabs org - http://www.gizmolabs.org/~dhelder




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]