mirror of
https://github.com/ksherlock/marignotti.git
synced 2024-12-13 01:30:43 +00:00
might help to actually close the connection...
This commit is contained in:
parent
1883b2ce7a
commit
94cd1304c4
@ -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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user