Pavel Plesov 4fd2dd9d83 Do not send an HTTP error when we've already closed or responded.
Previously, we'd issue an HTTP/1.1 400 Bad Request" response on every
connection close, event if sever sent response already.

This patch changes the behavior, so we only issue the response on
close when the connection state is not DISCONNECTED, and so we set
the state to DISCONNECTED when the connection closes.

Includes a regression test; fixes sourceforge bug 2909909.
2010-01-11 18:54:23 -05:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-12-12 06:26:07 +00:00
2009-11-23 12:55:50 -05:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-12-19 04:52:28 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2007-11-12 02:37:25 +00:00
2008-02-26 02:27:44 +00:00

To build libevent, type

$ ./configure && make

     (If you got libevent from the subversion repository, you will
      first need to run the included "autogen.sh" script in order to
      generate the configure script.)

Install as root via

# make install

You can run the regression tests by

$ make verify

Before, reporting any problems, please run the regression tests.

To enable the low-level tracing build the library as:

CFLAGS=-DUSE_DEBUG ./configure [...]

Acknowledgements:
-----------------

The following people have helped with suggestions, ideas, code or
fixing bugs:

  Alejo
  Weston Andros Adamson
  William Ahern
  Stas Bekman
  Andrew Danforth
  Mike Davis
  Shie Erlich
  Alexander von Gernler
  Artur Grabowski
  Aaron Hopkins
  Claudio Jeker
  Scott Lamb
  Adam Langley
  Philip Lewis
  David Libenzi
  Nick Mathewson
  Andrey Matveev
  Richard Nyberg
  Jon Oberheide
  Phil Oleson
  Dave Pacheco
  Tassilo von Parseval
  Pierre Phaneuf
  Jon Poland
  Bert JW Regeer
  Dug Song
  Taral

If I have forgotten your name, please contact me.
Description
A public libevent repository. The official repository is still at at git://levent.git.sourceforge.net/gitroot/levent/libevent
Readme Multiple Licenses 11 MiB
Languages
C 88.3%
CMake 3.9%
Python 2.5%
M4 2.3%
Roff 1.8%
Other 1.2%