Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3758] cherokee/trunk/cherokee/thread.c: Fixes POST issue.

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Oct 29, 2009, 4:20 PM

Post #1 of 1 (34 views)
Permalink
[3758] cherokee/trunk/cherokee/thread.c: Fixes POST issue.

Revision: 3758
http://svn.cherokee-project.com/changeset/3758
Author: aperez
Date: 2009-10-30 00:20:30 +0100 (Fri, 30 Oct 2009)

Log Message:
-----------
Fixes POST issue. My previous patch (r3655 and r3657) was bad...

Modified Paths:
--------------
cherokee/trunk/cherokee/thread.c

Modified: cherokee/trunk/cherokee/thread.c
===================================================================
--- cherokee/trunk/cherokee/thread.c 2009-10-29 16:44:12 UTC (rev 3757)
+++ cherokee/trunk/cherokee/thread.c 2009-10-29 23:20:30 UTC (rev 3758)
@@ -732,14 +732,17 @@
if ((conn->post.size > 0) &&
((conn->post.received + len) > conn->post.size))
{
+ size_t remain = 0;
+
+ remain = len - (conn->post.size - conn->post.received);
len = conn->post.size - conn->post.received;

cherokee_buffer_add (&conn->incoming_header,
conn->post.info.buf + len,
- conn->post.info.len - len);
+ remain);

cherokee_buffer_drop_ending (POST_BUF(&conn->post),
- conn->post.info.len - len);
+ remain);
}

cherokee_post_commit_buf (&conn->post, len);

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.