Ticket #7552: asiohang.patch

File asiohang.patch, 590 bytes (added by danielg@…, 10 years ago)

Proposed fix for this bug.

  • win_iocp_io_service.ipp

     
    407407        return 0;
    408408      }
    409409
    410       // If we're not polling we need to keep going until we get a real handler.
    411       if (block)
     410      // If we're not polling we need to keep going until we get a real handler,
     411      // unless we have been stopped.
     412      if (block && ::InterlockedExchangeAdd(&stopped_, 0) == 0)
    412413        continue;
    413414
    414415      ec = boost::system::error_code();