Changeset 769
- Timestamp:
- 06/01/07 21:37:36 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/connection.c (modified) (14 diffs)
- cherokee/trunk/cherokee/fcgi_manager.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r768 r769 1 2007-06-01 A.D.F <adefacc@tin.it> 2 3 * cherokee/connection.c: 4 - sparse cleanups; 5 - cherokee_connection_linger_read(), 6 retry read only if tmp_buf has been completely filled 7 so that we spare one read during linger phase 8 (cherokee_connection_linger_read() is called 9 in thread.c -> purge_connection() too, so it should 10 try to read EOF if EOF has not been read yet); 11 12 * cherokee/fcgi_manager.c: 13 - cherokee_fcgi_manager_send_remove(), 14 removed redundant break (replaced by a return). 15 1 16 2007-05-31 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 17 cherokee/trunk/cherokee/connection.c
r767 r769 870 870 871 871 while (true) { 872 size_t cnt_read = 0;872 size_t cnt_read = 0; 873 873 874 874 /* Read from the socket to nowhere … … 887 887 case ret_ok: 888 888 TRACE(ENTRIES, "read %u, ok\n", cnt_read); 889 if (cnt_read > 0&& --retries > 0)889 if (cnt_read == tmp1->size && --retries > 0) 890 890 continue; 891 891 return ret; 892 892 default: 893 893 RET_UNKNOWN(ret); 894 break;895 } 896 return ret_error;894 return ret_error; 895 } 896 /* NOTREACHED */ 897 897 } 898 898 } … … 1032 1032 1033 1033 *end = '\0'; /* (1) */ 1034 1034 1035 1035 i1 = ptr; 1036 1036 1037 1037 do { 1038 1038 i2 = strchr (i1, ','); … … 1115 1115 if (end == NULL) 1116 1116 return ret_error; 1117 1117 1118 1118 ptr_len -= (ptr + ptr_len) - end; 1119 1119 … … 1152 1152 return ret_error; 1153 1153 } 1154 1154 1155 1155 return ret_ok; 1156 1156 } … … 1234 1234 return ret_error; 1235 1235 } 1236 1236 1237 1237 /* Build the local_directory: 1238 1238 */ … … 1266 1266 } 1267 1267 } 1268 1268 1269 1269 /* Advance the pointer 1270 1270 */ … … 1332 1332 memcpy (buf, info, info_len); 1333 1333 buf[info_len] = '\0'; 1334 1334 1335 1335 post_len = (off_t) atol(buf); 1336 1336 if (post_len < 0) { … … 1424 1424 cherokee_buffer_drop_endding (&conn->incoming_header, post_len); 1425 1425 } 1426 1426 1427 1427 /* Copy the request and query string 1428 1428 */ … … 1479 1479 */ 1480 1480 if ((!cherokee_buffer_is_empty (&CONN_VSRV(conn)->userdir)) && 1481 cherokee_connection_is_userdir (conn)) 1482 { 1481 cherokee_connection_is_userdir (conn)) { 1483 1482 ret = parse_userdir (conn); 1484 1483 if (ret != ret_ok) return ret; … … 1578 1577 if ((conn->request.len > 1) && 1579 1578 (cherokee_buffer_end_char (&conn->request) != '/') && 1580 (cherokee_buffer_cmp_buf (&conn->request, &conn->web_directory) == ret_ok)) 1581 { 1579 (cherokee_buffer_cmp_buf (&conn->request, &conn->web_directory) == ret_ok)) { 1582 1580 cherokee_buffer_ensure_size (&conn->redirect, conn->request.len + 4); 1583 1581 cherokee_buffer_add_buffer (&conn->redirect, &conn->request); … … 1681 1679 goto unauthorized; 1682 1680 } 1683 1681 1684 1682 /* Create the validator object 1685 1683 */ … … 1699 1697 /* Check if the user is in the list 1700 1698 */ 1701 if (config_entry->users != NULL) 1702 { 1699 if (config_entry->users != NULL) { 1703 1700 void *foo; 1704 1701 … … 1922 1919 else 1923 1920 at_end = ! HANDLER_SUPPORT_LENGTH(conn->handler); 1924 1921 1925 1922 /* Set the option bit mask 1926 1923 */ cherokee/trunk/cherokee/fcgi_manager.c
r656 r769 486 486 default: 487 487 RET_UNKNOWN(ret); 488 } 489 490 return ret_ok; 488 return ret; 489 } 491 490 } 492 491