aboutsummaryrefslogtreecommitdiff
path: root/which
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2011-11-03 18:40:32 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2011-11-03 18:40:32 +0000
commitc1a4500d6c422f5d4a4302210da758379589b044 (patch)
treea3da5af73377afe30f83182aa6a9a166b052fa91 /which
parent102df6d72865b66e534a7188795fc83f6ae2f7d4 (diff)
To prevent overwriting the send buffer with multiple simultaneous messages, each sender thread now gets its own buffer.
(Usually a multiple message results in two TCP packets, with the first message in the first packet and the rest in the second.) The buffers are preallocated and assigned to threads in round-robin fashion. There are MAX_TCPCLIENT_THREADS (32) buffers. Wait for all threads to terminate before disconnecting a socket. svn path=/trunk/externals/mrpeach/; revision=15700
Diffstat (limited to 'which')
0 files changed, 0 insertions, 0 deletions