Re: Sockets stuck in FIN_WAIT_1



On 2008-May-29 18:11:56 -0400, Robert Blayzor <rblayzor.bulk@xxxxxxxx> wrote:
working. Only way to correct it seems to reboot the server... even under
RELENG_7_0.... so the upgrade from 4_11 did not fix the problem.

Unfortunately, your issue is a bug in the client: The server is trying
to send data and the client is continuously reporting that it is still
around but can't accept the data right now. The server is behaving
perfectly correctly.

As a work-around, you could write a cronjob that scans "netstat" and
temporarily creates an ipfw 'reset' rule that matches each FIN_WAIT_1
socket (possibly only if data is queued and/or matching packets that
advertise a 0 windowsize). This rule would have to preceed any
check-state rule. This is a hack but it will save you having to
reboot the server. (Create them all with the same rule number and
delete that rule number as the first step in the cronjob would handle
rule cleanup).

A real solution would require more thought. I suspect you need a
mechanism similar to the keepalive timer that starts when there is
data queued and is reset when (some) data is sent - this would catch
your situation but I'm not sure if it's a general solution. I'm not
sure if one of the existing TCP timers could be (ab)used to achieve
this.

--
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

Attachment: pgp6uKGT09ybu.pgp
Description: PGP signature



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)