Fix a pipelining performance issue due to the way reading from the socket
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 23 May 2008 06:55:11 +0000 (06:55 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 23 May 2008 06:55:11 +0000 (06:55 +0000)
commit07424787985341049294309c2e1f9e53ac8eee3a
treef5ae0209e3fc422223ee955d158d0919ec0b4a83
parentc8f00efa27d5ff3876b732d37a7c2fbb51e72073
Fix a pipelining performance issue due to the way reading from the socket
was implemented.  Instead of having the threads compete for read-access to
the socket, create a single thread whos responsibility is to read traffic
from the socket and route it to the appropriate transaction.  This greatly
improves parallel threading performance for cpdup's to remote hosts.
bin/cpdup/cpdup.c
bin/cpdup/hclink.c
bin/cpdup/hclink.h