1. My RedHat v6.1 daemon doesn't know when to quit !
Hi.
I've got a daemon process that has been running great on several
platforms
for quite some time (several years). I recently ported to linux and have
run
accross a rather fascinating problem.
If I suddenly remove a connected client from the network, say by
disconnecting
it from the switch, my linux daemon will hang on a write when that
socket's send
queue fills.
I set socket options for NONBLOCKING,REUSEADDR,KEEPALIVES,DONTLINGER
on the listening socket. I do nothing additional for the client socket
returned from accept().
This same server runs on FreeBSD 2.x & 3.x, NeXTStep, OpenStep,
Sun/Solaris 2.6, and
even win32 (w/cygwin), without this EVER happening (AFAIK) .
All of these other platforms will eventually return an error from the
write call, generally
within 20 seconds or less from when I break the client host off the
network. This is well
before my server can fill its send queue. I'm guessing that the linux
eventually would time
out too but that this must apparently take well into the minutes !
I tried the SO_SNDTIMEO w/various timevals in setsockopt() but that call
simply returns
errno = 92. Seems to agree w/my older Stevens book that this option is
unsupported.
I've heard that this situation doesn't happen on the latest linux
kernel (2.4) but haven't
verified that myself. Maybe that new 2.4 BSD stack fixes the problem. If
it is really a problem
and not just my incomplete knowlege of linux socket configuration coming
home to roost.
I really need to get to the bottom of this for the 2.2 kernel as I am
not allowed to install
"development" kernels in production. I'd like to avoid moving this back
to FreeBSD in
the meantime.
Anybody got any ideas ?
Thanks,
bisk
2. Dual nic's
3. Installing print filters in RedHat's Printtool
4. Apache webserver newsgroups?
5. My 'made-by-printtool' lp queue doesn't queue.
6. Shared Memory, base address
7. color-ls doesn't show color dir's.
8. Core Dumping Everywhere??
9. Why doesn't Red Hat show dir colors like Slackware?
10. Why doesn't ls -o print colors in xterm???
11. Printtool doesn't see /dev/lp1
12. redhat remote printing - printtool
13. Why doesn't Redhat 4.0 print txt files from command line?