Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
FreeBSD
-
Patch Available
Description
POSIX says what recv(2) should returns 0 if peer has performed a shutdown. This feature uses in TBufferedTransport
bool peek() { if (rBase_ == rBound_) { setReadBuffer(rBuf_.get(), transport_->read(rBuf_.get(), rBufSize_)); } return (rBound_ > rBase_); }
The decision works fine on linux, but fails on freebsd. In freebsd, recv returns -1 and errno==ECONNRESET.
Attachments
Issue Links
- is related to
-
THRIFT-497 TSocket read/peek fails on OS X
- Closed