Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0502e61
)
-- ensure that flush is called in close() of any wrapper transport
author
Aditya Agarwal
<aditya@apache.org>
Tue, 6 Nov 2007 06:33:06 +0000
(06:33 +0000)
committer
Aditya Agarwal
<aditya@apache.org>
Tue, 6 Nov 2007 06:33:06 +0000
(06:33 +0000)
Summary:
- unflushed data should be flushed when transport is closed
- this diff calls flush for TBufferedTransport and TFramedTransport
Reviewed By: dreiss
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665323
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/transport/TTransportUtils.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/transport/TTransportUtils.h
b/lib/cpp/src/transport/TTransportUtils.h
index
dde3bd8
..
3a97448
100644
(file)
--- a/
lib/cpp/src/transport/TTransportUtils.h
+++ b/
lib/cpp/src/transport/TTransportUtils.h
@@
-96,6
+96,7
@@
class TBufferedTransport : public TTransport {
}
void close() {
+ flush();
transport_->close();
}
@@
-208,6
+209,7
@@
class TFramedTransport : public TTransport {
}
void close() {
+ flush();
transport_->close();
}