Skip to content

Commit

Permalink
Implement a non blocking async behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jun 14, 2021
1 parent 22cbdde commit b3f92a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified roadrunner.so
Binary file not shown.
2 changes: 1 addition & 1 deletion src/threadpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Worker {

// let mut buffer = [0; 1024];
// stream.read(&mut buffer).unwrap();
async_std::task::block_on(async move {
async_std::task::spawn(async move {
let output = f.await.unwrap();
let status_line = "HTTP/1.1 200 OK";
Python::with_gil(|py| {
Expand Down

0 comments on commit b3f92a0

Please sign in to comment.