(THRIFT-45) TNonblockingServer (C++): only do one write in responses.
commitfcf6c97bdc3aee5d7c5c948b43396273fb78100d
authordreiss <dreiss@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 30 Jun 2008 21:40:35 +0000 (30 21:40 +0000)
committerdreiss <dreiss@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 30 Jun 2008 21:40:35 +0000 (30 21:40 +0000)
tree809000e9a27f54182eea3982d5ad7e54b7e98dc0
parent642bbe6386e832cbd3109f8f4e4923f6ad1858ed
(THRIFT-45) TNonblockingServer (C++): only do one write in responses.

Instead of doing one 4-byte write for the frame length before the write
of the actual message, prepend the frame length to the message buffer
so we can send them both at once.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@672937 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/server/TNonblockingServer.cpp
lib/cpp/src/server/TNonblockingServer.h