Skip to content
This repository
Browse code

cherokee_connection_build_header() can return ret_eagain with and

without requiring any I/O polling.
  • Loading branch information...
commit 9fed6d2e1aa32c32c48927139af722294f100743 1 parent 83ec242
Alvaro Lopez Ortega authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  cherokee/thread.c
4  cherokee/thread.c
@@ -1124,7 +1124,9 @@ process_active_connections (cherokee_thread_t *thd)
1124 1124
 			case ret_ok:
1125 1125
 				break;
1126 1126
 			case ret_eagain:
1127  
-				cherokee_thread_deactive_to_polling (thd, conn);
  1127
+				if (cherokee_connection_poll_is_set (&conn->polling_aim)) {
  1128
+					cherokee_thread_deactive_to_polling (thd, conn);
  1129
+				}
1128 1130
 				continue;
1129 1131
 			case ret_eof:
1130 1132
 			case ret_error:

0 notes on commit 9fed6d2

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