Ticket #1 (closed defect: fixed)

Opened 13 months ago

Last modified 3 weeks ago

ASIO does not run callbacks if run or poll are called too early

Reported by: ewencp Owned by: PatrickHorn
Priority: minor Milestone:
Component: LibCore Utilities Keywords: asio
Cc:

Description

Calling Network::IOServiceFactory::pollService(ioServ) between ObjectHost? init and creating the first network connection causes IOService to fail permanently.
The boost documentation mentions needing to call a "reset" function if there is nothing in the queue to be sent, possibly due to quirks with the select function having nothing to select on, but is there a better way, such as always having at least one event there?

Change History

Changed 13 months ago by PatrickHorn

  • owner changed from ewencp to PatrickHorn
  • component changed from Sirikata to LibCore Utilities

Changed 13 months ago by danielrh

  • priority changed from major to minor

Changed 3 weeks ago by ewencp

  • status changed from new to closed
  • resolution set to fixed

No longer an issue. Components that need it should use an IOWork object to keep the IOService busy.

Note: See TracTickets for help on using tickets.