Tatsuhiro Tsujikawa d42f31ca78 nghttpx: Fix bug that data buffered in SSL object are not read
This is same issue described in https://github.com/h2o/h2o/issues/268.
That is if SSL object has decrypted data buffered inside it, and
application does not read it for some reason (e.g., rate limit), we
have to check the existence of data using SSL_pending.  This is
because buffered data inside SSL is not notified by io watcher.  It is
obvious, but we totally missed it.

nghttpx code normally reads everything until SSL_read returns error
(want-read).  But if rate limit is involved, we stop reading early.
Also in HTTP/1 code, while processing one request, we just read until
buffer is filled up.  In these cases, we may suffer from this problem.

This commit fixes this problem, by performing SSL_pending() and if it
has buffered data and read io watcher is enabled, we feed event using
ev_feed_event().
2015-04-06 22:31:36 +09:00
2014-11-23 19:32:54 +09:00
2012-10-27 14:54:06 -07:00
2015-04-03 21:10:11 +09:00
2015-03-29 18:40:37 +09:00
2015-01-03 00:25:19 +09:00
2014-03-30 19:26:37 +09:00
2012-01-18 00:53:12 +09:00
2012-01-18 00:53:12 +09:00
2014-10-27 21:27:41 +09:00
2014-10-27 21:27:41 +09:00
2014-10-27 21:27:41 +09:00
2015-01-10 00:37:42 +09:00
2014-02-05 23:12:53 +09:00
2014-10-27 21:24:41 +09:00
2014-10-27 21:24:41 +09:00
2014-10-27 21:24:41 +09:00
2013-07-13 00:43:06 +09:00
2015-03-25 21:04:49 +08:00
2014-11-27 23:56:29 +09:00
2012-01-18 00:53:12 +09:00
2015-03-31 23:31:24 +09:00

See README.rst
Description
nghttp2 - HTTP/2 C Library and tools
Readme 42 MiB
Languages
C++ 51.6%
C 38.3%
Go 4.1%
Python 1.8%
M4 1.7%
Other 2.5%