Replying to Avatar Daniel Wigton

I have to admit I am confused, but if you get a disconnect request from a client for which there is no established connection you can increment a disconnect counter in a mutex then whenever you complete a connect check for a positive disconnect counter, disconnect, and decrement.

If there is an established connection as indicated by a connection counter in the mutex then disconnect right away. It's kind of like counting parentheses.

Avatar
Daniel Wigton 1y ago

Are there other sorts of requests that are arriving out of order that require an open connection to be processed? Does the close connection request give any indication of how many to expect?

Reply to this note

Please Login to reply.

Discussion

No replies yet.