Opened 12 years ago
Closed 12 years ago
#4683 closed Bugs (worksforme)
Infinite loop in async_connect to 0.0.0.0:0 (boost::asio)
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Compiler: MSVS
Platform: MS Windows XP
BOOST_ASIO_HAS_IOCP is enabled
async_connect to 0.0.0.0:0 led to infinite loop in boost::asio.
Infinite loop is occured in select_reactor::run_thread(). It call select() (through select_reactor::run) and expect block execution by this function. But select immediately return 10038(WSAENOTSOCK). It lead to infinit use processor.
Of course connect to 0.0.0.0:0 is error, but asio must never go to infinite loop.
Note:
See TracTickets
for help on using tickets.
I cannot reproduce this problem. This test program:
outputs the following for me on Windows XP:
Please supply a more complete test case and reopen the bug. Thanks.