might help to actually close the connection...

This commit is contained in:
Kelvin Sherlock 2012-05-05 10:48:19 -04:00
parent 1883b2ce7a
commit 94cd1304c4

View File

@ -13,12 +13,14 @@ int mdetach(Entry *e, void *p1, void *p2, void *p3, void *p4, void *p5)
// TODO -- SO_LINGER/SO_LINGER_SEC // TODO -- SO_LINGER/SO_LINGER_SEC
LongWord timeout; LongWord timeout;
timeout = GetTick() + 5 * 60; timeout = 0; // GetTick() + 120 * 60;
SEI(); IncBusy();
TCPIPCloseTCP(e->ipid);
e->command = kCommandDisconnectAndLogout; e->command = kCommandDisconnectAndLogout;
e->cookie = 0; e->cookie = 0;
e->timeout = timeout; e->timeout = timeout;
CLI(); DecBusy();
return 0; return 0;
} }