(THRIFT-45) TNonblockingServer (C++): only do one write in responses.
authorDavid Reiss <dreiss@apache.org>
Mon, 30 Jun 2008 21:40:35 +0000 (21:40 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 30 Jun 2008 21:40:35 +0000 (21:40 +0000)
commit52cb7a7413a33a86079cf8e9b3561e33339aeb9d
tree809000e9a27f54182eea3982d5ad7e54b7e98dc0
parentf14541626d1c49cb1439d65e81fa3609c23b7cf0
(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