Arglanir / remote-connection-anywhere

Project in order to create connections to a protected zone, through async means
0 stars 0 forks source link

Collisions when opening two sessions at the same time #1

Open Arglanir opened 4 years ago

Arglanir commented 4 years ago

This problem may appear if a client is used in two different threads to open a session.

Change of protocol: The message numbers sent/received should increase.

Arglanir commented 4 years ago

Workaround: we can also create a lock when opening a session, so that only one session opening by client at a same time.

Arglanir commented 4 years ago

For the socks protocol, only one session can be created at a time, in one thread. So this problem may only appear in a multi-thread multi-session application not yet written.