On the server side, a thread needs to yield to allow other threads to transmit data.

Code clean up.