awips2/nativeLib/org.apache.thrift/thrift-0.9.0-http-refill.patch
Shawn.Hooper 18d44b6b0f ASM #17630 - Update with patched thrift libraries
Change-Id: Ibde2e2fb283f9b21360de4a013706409a7f941f1

Former-commit-id: ce6c9e536cd45d030b74d9cedf66b4a8cdb18bb3
2015-06-19 11:24:23 -04:00

15 lines
560 B
Diff

diff -ur thrift-0.9.0/lib/cpp/src/thrift/transport/THttpTransport.cpp thrift-0.9.0-http-refill/lib/cpp/src/thrift/transport/THttpTransport.cpp
--- thrift-0.9.0/lib/cpp/src/thrift/transport/THttpTransport.cpp 2012-10-12 00:58:06.000000000 +0000
+++ thrift-0.9.0-http-refill/lib/cpp/src/thrift/transport/THttpTransport.cpp 2015-06-19 10:50:02.818636967 +0000
@@ -80,7 +80,10 @@
uint32_t size;
// Get more data!
- refill();
+ uint32_t avail = httpBufLen_ - httpPos_;
+ if (avail == 0) {
+ refill();
+ }
if (readHeaders_) {
readHeaders();