fdsa
unread,Nov 4, 2008, 6:09:03 PM11/4/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ebbebb
On Mac OS X, when a client disconnects prior to the request
finishing, libebb will start looping and spike CPU until its
timeout triggers and the connection is closed.
dtruss shows what's going on:
recvfrom(0x7, 0xBFFEF1F1, 0xFFFF) = 0 0
kevent(0x3, 0x3006A0, 0x0) = 1 0
recvfrom(0x7, 0xBFFEF1F1, 0xFFFF) = 0 0
kevent(0x3, 0x3006A0, 0x0) = 1 0
recvfrom(0x7, 0xBFFEF1F1, 0xFFFF) = 0 0
kevent(0x3, 0x3006A0, 0x0) = 1 0
...
For some reason libebb doesn't immediately close the connection
when recv() returns zero (ebb.c:311). This looks intentional,
though. What's going on here?
-- mike