Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes a problem sending big chunks of data over congested sockets.

  • Loading branch information...
commit 78f32a0442d47950aca7f8ad90798f25117c9704 1 parent 74792e7
@alobbs alobbs authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 cherokee/thread.c
View
7 cherokee/thread.c
@@ -1291,6 +1291,9 @@ process_active_connections (cherokee_thread_t *thd)
maybe_purge_closed_connection (thd, conn);
continue;
case ret_eagain:
+ if (cherokee_connection_poll_is_set (&conn->polling_aim)) {
+ cherokee_thread_deactive_to_polling (thd, conn);
+ }
break;
case ret_eof:
case ret_error:
@@ -1307,7 +1310,9 @@ process_active_connections (cherokee_thread_t *thd)
case ret_ok:
continue;
case ret_eagain:
- cherokee_thread_deactive_to_polling (thd, conn);
+ if (cherokee_connection_poll_is_set (&conn->polling_aim)) {
+ cherokee_thread_deactive_to_polling (thd, conn);
+ }
break;
case ret_eof:
case ret_error:

0 comments on commit 78f32a0

Please sign in to comment.
Something went wrong with that request. Please try again.