summaryrefslogtreecommitdiff
path: root/TAO/tao/Transport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Transport.cpp')
-rw-r--r--TAO/tao/Transport.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp
index 2d1716e32b6..d450945a54a 100644
--- a/TAO/tao/Transport.cpp
+++ b/TAO/tao/Transport.cpp
@@ -925,6 +925,11 @@ int
TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[],
TAO::Transport::Drain_Constraints const & dc)
{
+ // As a side-effect, this decrements the timeout() pointed-to value by
+ // the time used in this function. That might be important as there are
+ // potentially long running system calls invoked from here.
+ ACE_Countdown_Time countdown(dc.timeout());
+
size_t byte_count = 0;
// ... send the message ...