Opened 6 years ago

#12606 new Bugs

Boost.ASIO not throwing EOF exception when using coroutine reading from pipe

Reported by: kirit.saelensminde@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc: kirit.saelensminde@…

Description

The coroutine just hangs when the end of file is reached. If the coroutine is used with an error code, i.e. "yield[ec]" then an error is properly returned.

This is on Ubuntu Xenial (16.04), clang 3.8 & gcc 5.4.1, libstdc++.so.6.

More details are in this SO question: http://stackoverflow.com/questions/40571429/stdin-pipe-not-closing-when-read-with-boost-asio

Change History (0)

Note: See TracTickets for help on using tickets.