Sean Finney on Wed, 19 Jun 2002 11:05:06 +0200 |
hey all-- so i'm experimenting with kernel-level sockets, and i have a working daemon that listens on a given tcp/ip port and writes "hello" to anyone that connects. the problem is, that I'm getting an increasing number of lingering connections in the CLOSE_WAIT state after the client disconnects. normally, i remember doing something with setsockopt and SO_LINGER to get rid of that back in the good ol' days of userland, but I either can't remember how I did that, or that functionality doesn't exist in kernel sockets. anyone have an idea? my current guess is that there's some data left somewhere on the wire, and i have to figure out how to flush it and close the socket... only, I don't know how to do this in the kernel ;p thanks --sean ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|