cpp: TSocket: call a second gettimeofday only for error checking
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:54 +0000 (05:19 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:54 +0000 (05:19 +0000)
commita1a15112fed5f7ec934a352920b4c535941fd1ab
tree5aca787d7a2489cbebb88fed005c97a47ac4eb84
parenteed92991cf064f7c89a911be734d51619150d6bf
cpp: TSocket: call a second gettimeofday only for error checking

Previously, we called gettimeofday twice for every send, which is
costly.  Now, we only make the second call if send fails with EAGAIN.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920677 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TSocket.cpp