The example async server code uses timeouts around read() operations. However, this has a race condition where data can be read, the timeout fires, and the data is lost.
These timeouts are not really needed in this example code, so I removed them to prevent people from having strange issues with lost messages and undefined RPC behavior when using the example code.
The example async server code uses timeouts around read() operations. However, this has a race condition where data can be read, the timeout fires, and the data is lost.
These timeouts are not really needed in this example code, so I removed them to prevent people from having strange issues with lost messages and undefined RPC behavior when using the example code.