Ticket #3517 (closed Bugs: fixed)
[iostreams] stream<file_descriptor_source> closes supplied descriptor
|Reported by:||Alexander Churanov <alexanderchuranov+boost@…>||Owned by:||danieljames|
The instance of stream <file_descriptor_source> closes supplied file descriptor on destruction even if the second specified argument is 'false'.
Expected behavior: descriptor remains opened after stream destruction
The repro application source is at http://alexanderchuranov.com/boost-iostreams-autoclose-bug.cc .
Workaround: call "set_auto_close(false)" right after stream construction.
It is believed that the root cause of the issue is indirect_stream having default constructor always initializing it's "flags_" member to f_auto_close.
- Owner changed from turkanis to danieljames
- Status changed from new to assigned
- Milestone changed from Boost 1.41.0 to Boost 1.44.0
- Status changed from assigned to closed
- Resolution set to fixed