Closed WilliamRagstad closed 8 months ago
Implement an asynchronous runtime in the currently non-optimized concurrent runtime entry point: https://github.com/webx-net/webx/blob/62e405e8e75440d4ff7214d1252eeb59ff219798/src/engine/runtime.rs#L678-L703
The idea is that the whole thread is currently blocked when the handle_request is running. Both the handle_request function and all IO operations should be async, thus allowing the following to dispatch an asynchronous call and move on to listening to new incoming requests. https://github.com/webx-net/webx/blob/62e405e8e75440d4ff7214d1252eeb59ff219798/src/engine/runtime.rs#L746-L752
handle_request
async
Possible implementations may use:
mio
The goal is to optimize the runtime run function and event loop thread. so that it can handle multiple ongoing requests concurrently in the same thread.
run
Implement an asynchronous runtime in the currently non-optimized concurrent runtime entry point: https://github.com/webx-net/webx/blob/62e405e8e75440d4ff7214d1252eeb59ff219798/src/engine/runtime.rs#L678-L703
The idea is that the whole thread is currently blocked when the
handle_request
is running. Both thehandle_request
function and all IO operations should beasync
, thus allowing the following to dispatch an asynchronous call and move on to listening to new incoming requests. https://github.com/webx-net/webx/blob/62e405e8e75440d4ff7214d1252eeb59ff219798/src/engine/runtime.rs#L746-L752Possible implementations may use:
mio
)The goal is to optimize the runtime
run
function and event loop thread. so that it can handle multiple ongoing requests concurrently in the same thread.