Author |
Disappearing servers / Disconnections... |
Faustus Marshal Palestar
Joined: May 29, 2001 Posts: 2748 From: Austin, Texas
| Posted: 2002-01-21 20:37  
I've changed the implementation of the network communications code to hopefully fix problems with servers disappearing from the list and users getting disconnected from the servers.
The problem is centered around the server code, which attempts to handle n number of clients with a single thread. The disconnects can happen when 1 client (with a very slow connection) blocks the thread, effectively disconnecting the other clients on the same thread.
The solution is for the server to know when it has all the data is needs from a client before processing the message from the client. This is basically what I've implemented into the network code to correct this problem.
I'm about 95% certain this is the source of most disconnects, which include the servers disappearing from the server list. This bug would manifest it'self when a user either disconnects from the server halfway through transmission or has a VERY slow connection.
-Richard
[ This Message was edited by: Faustus on 2002-01-21 20:45 ]
_________________
|