ACiDCA7
getting tcp connection state
the conenction will stay in timewait even if device just dies until the timeout. from point of server everything is fine. but then device revives, tries to reestablish a new conenction on same port but cant anymore.. this is the shortest i can explaint it.
or don't understandjep might be the case... to be honest i had jsut hoped for a quick solution, im currently writing in my free time and dont want to invest too much time into wrok related stuff..xD
41 replies
getting tcp connection state
there were some parameters you could set to set the checkhealthinterval of the tcpsocket. i dont currently have the sourcecode on me so cannot tell exactly how it was done. this will check the tcpconnection on deeper osi level (windows knows about it). if device is gone the conenctionstate goes from established to time-wait. usually couple tries before its completly disconnected. we set that param pretty low, i think it was in the 10s of ms default is somewhere in the multiple seconds iirc. the crux is tho that time-wait is for the tcpsocket still connected while what we want is that if it goes into timewait we know about it to treat it appropriatly
41 replies