]> granicus.if.org Git - libevent/commit
http: Merge branch 'http-max_connections-pr-592'
authorAzat Khuzhin <azat@libevent.org>
Mon, 25 May 2020 08:25:18 +0000 (11:25 +0300)
committerAzat Khuzhin <azat@libevent.org>
Mon, 25 May 2020 08:25:18 +0000 (11:25 +0300)
commit7426a568d009c34fbef9ab607aedab9d05fc29ec
treec3f4c08ea3a293f2e6d497866409ab7e7ba52a7d
parentf10aaea37433b60ed3e0b7adcc7b1764c8b0b518
parent95c1c200c182d96f49930a15ad433a7049e61b06
http: Merge branch 'http-max_connections-pr-592'

@jcoffland:

  "When the max connection limit is enabled and the limit is reached, the
   server will respond immediately with 503 Service Unavailable. This can
   be used to prevent servers from running out of file descriptors. This is
   better than request limiting because clients may make more than one
   request over a single connection. Blocking a request does not
   necessarily close the connection and free up a socket."

* http-max_connections-pr-592:
  test: cover evhttp max connections
  Added evhttp max simultaneous connection limiting
http-internal.h
http.c
include/event2/http.h
test/regress_http.c