You are not logged in.
Pages: 1
Hi,
I am working with TCP a little and during usage of mORMot (TDDDSocketThread exactly) I discovered the problem:
mORMot can't detect FIN flag (which means end of connection). May be worth to rethink implementation of SynCrtSock.InputSock. Some tip from stackoverflow:
http://stackoverflow.com/a/17705579/278086
I am unable to detect from TDDDSocketThread level packet with FIN flag (from client side). After FIN action (37) my server/client tries to send new packet (39) which is rejected (40) and data are lost. In this step (40) is executed TDDDSocketThread.InternalExecuteDisconnect which is not correct at all. The connection should be closed probably in step after FIN (38) - I guess: packet with ACK and FIN.
Last edited by hnb (2017-05-09 11:32:54)
best regards,
Maciej Izak
Offline
Pages: 1