Fork 0
Commit Graph

29 Commits

Author SHA1 Message Date
Glenn Strauss f680becd0b v0.4 2016-04-14 22:28:08 -04:00
Glenn Strauss 925707722f more robust chunked response parsing (fixes #2554)
handle chunked parts across multiple reads

fixes https://redmine.lighttpd.net/issues/2554
where Happstack performs multiple writes to send HTTP chunked header,
HTTP chunked body, and CRLF ending HTTP chunked body

supercedes https://github.com/lighttpd/weighttp/pull/8

handle additional chunked case of split CR and LF
  thx stbuehler

detect CR not followed by LF (error)

handle NIL in chunked stream
(should not occur in HTTP headers or chunked header,
 but could occur in chunked body)

  "weighttp closing connection too early(?)"

github: closes #8, closes #9
2016-04-14 22:16:46 -04:00
Stefan Bühler 8f2147e429 add autobuild; remove build-date from binary 2015-06-21 21:49:18 +02:00
Xiaochen Wang 7da292b242 calculate concur & reqs more easily
When i is increased to (config.thread_count - 1), rest_concur has been decreased to zero.
Therefore diff is always 1 in loop. It is unnecessary to calculate diff.
2013-10-25 16:34:50 +02:00
Stefan Bühler c14ac587e0 Improve option error handling 2013-06-15 13:28:41 +02:00
Stefan Bühler 1ebdbb88ff Fix bug with unsigned 'char' type (arm) in option parsing (fixes github#6) 2013-06-15 13:28:41 +02:00
Ben Brown c24b5051c0 User-Agent header no longer needs a leading space 2013-02-23 12:22:33 +01:00
Ben Brown 23181d6f4f Corrected Host header handling (fixes #2477) 2013-02-19 20:03:57 +00:00
Jyri J. Virkki b720a89d55 Fix header parsing to compare HTTP header field names case
insensitively. This fixes the problem where responses get incorrectly
marked as errors if the response header field name case doesn't happen
to match to what is in the code.

Also compare connection and transfer-encoding tokens case insensitively.

(Reference: RFC 2616: header field names are not case sensitive.)

Co-authored-by: Stefan Bühler <stbuehler@web.de>
2013-01-07 15:08:05 +01:00
Thomas Porzelt 1bdbe4003c v0.3 2011-10-16 12:01:50 +02:00
Thomas Porzelt 0fdf9d4229 add stats about response status codes (2xx, 3xx, 4xx, 5xx) 2011-10-16 12:01:08 +02:00
Thomas Porzelt 0e287d6736 add -H commandline parameter to specify custom headers 2011-10-16 10:24:51 +02:00
Thomas Porzelt cb720d0bf1 remove some bogus defines from wscript 2009-11-01 15:11:57 +01:00
Thomas Porzelt 5c686391cb add User-Agent header to request 2009-10-04 17:45:27 +02:00
Thomas Porzelt bdfdd127c1 add support for responses that are not keepalive, not chunked and don't have any content-length header 2009-10-04 17:45:19 +02:00
Thomas Porzelt 9df53d5efc v0.2 2009-09-30 23:32:20 +02:00
Thomas Porzelt b9a679e2f5 add chunked encoding support 2009-09-30 23:31:03 +02:00
Thomas Porzelt 9d7e517a0d v0.1 2009-09-13 16:39:02 +02:00
Thomas Porzelt 4a454553a6 add ipv6 support 2009-09-13 16:36:27 +02:00
Thomas Porzelt 993ed0a6b0 fix tiny memory leak 2009-09-13 16:16:29 +02:00
Thomas Porzelt 98278f6de2 add progress output 2009-09-13 16:08:15 +02:00
Thomas Porzelt 2a8afc8dfb fix handling of responses bigger than the client BUFFER_SIZE (32kb) 2009-09-11 20:16:03 +02:00
Thomas Porzelt 572ab4496e fix state machine bug which would lead to failed request even though there was no error 2009-09-11 18:27:43 +02:00
Thomas Porzelt 9df7f495cc fix integer overflows with commandline parameters resulting in wrong amount of requests performed
fix client state machine
2009-09-11 12:09:54 +02:00
Thomas Porzelt 20738ad079 waf: fix broken wscript 2009-09-10 23:53:14 +02:00
Thomas Porzelt dd6f9d16ad add newlines at end of files 2009-09-10 23:45:34 +02:00
Thomas Porzelt a5fc82bc70 fix syntax error introduced by last-minute cleanups... 2009-09-10 22:26:58 +02:00
Thomas Porzelt 5adc0d587e waf: don't treat warnings as errors when compiling 2009-09-10 22:08:42 +02:00
Thomas Porzelt 68b711e66b initial commit 2009-09-10 20:09:56 +02:00