You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create an http server with an existing asio::io_service? If an application has an existing thread pool available could this be passed to a custom scheduler for example?
The text was updated successfully, but these errors were encountered:
Yes, you need to derive from pion::scheduler class and to override its pion::scheduler::get_io_service() member function. Then pass the custom scheduler into a http server:
Thx, I can use that to use as my scheduler, one issue though: If I then want to stop my application it doesn't close the connection which is waiting for the async_accept. So I get infinite messages:
946694190 INFO pion.tcp.server Waiting for open connections to finish
946694190 INFO pion.tcp.server Waiting for open connections to finish
946694190 INFO pion.tcp.server Waiting for open connections to finish
946694191 INFO pion.tcp.server Waiting for open connections to finish
Is it possible to create an http server with an existing
asio::io_service
? If an application has an existing thread pool available could this be passed to a custom scheduler for example?The text was updated successfully, but these errors were encountered: