Created
May 28, 2012 05:09
-
-
Save fcicq/2817335 to your computer and use it in GitHub Desktop.
[1/2] Split http://code.google.com/p/cherokee/issues/detail?id=489 ---BAD Patch, dont apply!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- cherokee/connection.c.orig 2011-10-13 02:07:44.000000000 +0800 | |
+++ cherokee/connection.c 2012-05-28 13:02:51.000000000 +0800 | |
@@ -2625,6 +2625,8 @@ | |
ret_t | |
cherokee_connection_open_request (cherokee_connection_t *conn) | |
{ | |
+ ret_t ret; | |
+ | |
TRACE (ENTRIES, "web_directory='%s' request='%s' local_directory='%s'\n", | |
conn->web_directory.buf, | |
conn->request.buf, | |
@@ -2637,7 +2639,18 @@ | |
/* Init the connection handler object | |
*/ | |
- return cherokee_handler_init (conn->handler); | |
+ ret = cherokee_handler_init (conn->handler); | |
+ /*LOG_ERROR ("cherokee_connection_open_request: connection->timeout: '%d', bogonow: '%d', ret: '%d'\n", conn->timeout, cherokee_bogonow_now, ret);*/ | |
+ if(ret != ret_ok && cherokee_bogonow_now < conn->timeout) { | |
+ /*LOG_ERROR ("cherokee_connection_open_request - retrying: got ret: '%d', send ret: '%d'\n", ret, ret_eagain);*/ | |
+ usleep(10000); | |
+ return ret_eagain; | |
+ } | |
+ /*if(ret != ret_ok) {*/ | |
+ /*LOG_ERROR ("cherokee_connection_open_request - failing: got ret: '%d'\n", ret);*/ | |
+ /*}*/ | |
+ return ret; | |
+ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apt-get source cherokee cd cherokee-* sh -c "echo '' > qa/run-tests.py" find . -name "*.pyc" -delete debuild -uc -us sudo dpkg -i libcherokee-*0_*.deb cherokee_*.deb cherokee-admin_*.deb libcherokee-mod-rrd_*.deb