Overview
| Artifact ID: | 53d49c6c6119eb9f2d3c606e10b1ae77fcab1f81 |
|---|---|
| Ticket: | 3056775fffffffffffffffffffffffffffffffff
Socket -server stops accepting connections under load |
| User & Date: | andreas_kupries on 2010-09-23 05:59:19 |
Changes
- icomment:
Your explanation makes sense, and armed with it I believe I have traced the various connections ... "InitSockets()" is called to set the socket handling in a Thread. This creates the co-thread, whose implementation is "SocketThread()". ST() creates the window to receive messages and then simply runs a get/dispatch loop. This windows' class was specially created by IS() as well (before the thead was spawned), and from there DispatchMessage() knows that it has to call "SocketProc()", which therefore runs in the co-thread. It locks the list, searches for the proper infoPtr, and modifies it, per the message. The event-queue and handling is run by the thread itself, which goes through "SocketEventProc()" and "TcpAccept()", and is missing the lock. Ok. Your fix is a fix, not a band-aid. Taking the bug back to myself. I will wait for your unified diff. This structure should be documented. I will write that up while waiting for your diff. Back-porting to the 8.5 and 8.4 branches should be easy.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"