cpp-httplib/test
Changbin Park b57f79f438
Detecting client disconnection (#1373)
* SocketStream need to check connectivity for writability.

When the stream is used for SSE server which works via chunked content
provider it's not possible to check connectivity over writability
because it's wrapped by DataSink. It could make the server stalled, when
the provider wants to only keep connection without send data and certain
amount of clients consumes entire threadpool.

* add unittest for SocketStream::is_writable()

SocketStream::is_writable() should return false if peer is disconnected.

* revise broken unittest ServerTest.ClientStop

DataSink could be unwritable if it's backed by connection based. Because
it could be disconnected by client right after enter centent provider.

Co-authored-by: Changbin Park <changbin.park@ahnlab.com>
2022-08-30 21:11:19 -04:00
..
fuzzing Issue 49512: cpp-httplib:server_fuzzer: Timeout in server_fuzzer 2022-07-30 23:27:29 -04:00
gtest Use googletest 1.11.0 (#1000) 2021-07-17 13:21:03 -04:00
proxy Removed up.sh and down.sh 2022-02-09 17:16:18 -05:00
www/dir meson: add tests (#1044) 2021-09-11 14:26:48 -04:00
www2/dir meson: add tests (#1044) 2021-09-11 14:26:48 -04:00
www3/dir meson: add tests (#1044) 2021-09-11 14:26:48 -04:00
ca-bundle.crt Wildcard support for verifying server certificate. fix #87 2019-05-07 21:40:03 -04:00
image.jpg Add a file for test 2017-12-29 22:34:59 -05:00
include_httplib.cc Add test of httplib.h split into .h + .cc (#1015) 2021-07-31 09:53:30 -04:00
Makefile Fix #1292 (#1296) 2022-05-27 11:54:43 -04:00
meson.build build(meson): mark *_encrypted_pem as test deps (#1255) 2022-04-19 07:12:00 -04:00
test.cc Detecting client disconnection (#1373) 2022-08-30 21:11:19 -04:00
test.conf ssl-verify-host: fix verifying ip addresses containing zero's (#732) 2020-11-02 20:27:34 -05:00
test.rootCA.conf setup test cases for client certificates 2019-06-07 01:23:22 +08:00
test.sln static file support. vc12 support. 2013-07-04 18:18:52 -04:00
test.vcxproj resolve http server can't send file large than 2GB (Fix #1290) (#1294) 2022-05-27 11:56:20 -04:00
test_proxy.cc Disable YouTubeNoSSLDigest 2022-07-08 17:40:05 -04:00