- 20 Jan, 2021 2 commits
-
-
Kip authored
listener: add CloseOnExec option
-
Kip Warner authored
-
- 19 Jan, 2021 1 commit
-
-
Mateusz Szychowski (Muttley) authored
allows to set SOCK_CLOEXEC option for creating sockets can be used to avoid leaking file descriptors to child processes with fork()
-
- 14 Jan, 2021 1 commit
-
-
Kip authored
-
- 10 Jan, 2021 1 commit
-
-
Kip authored
Make fPIC optional
-
- 08 Jan, 2021 1 commit
-
-
Kip authored
-
- 07 Jan, 2021 7 commits
- 30 Dec, 2020 2 commits
-
-
Uilian Ries authored
Signed-off-by:
Uilian Ries <uilianries@gmail.com>
-
Uilian Ries authored
Signed-off-by:
Uilian Ries <uilianries@gmail.com>
-
- 29 Dec, 2020 1 commit
-
-
Kip authored
Modernize CMakeLists.txt
-
- 28 Dec, 2020 1 commit
-
-
Kip authored
-
- 27 Dec, 2020 1 commit
-
-
Tachi authored
WIth this I'm trying to fix some of the issues pointed out in #827. Changes: Use add_compile_options() instead of modifying CMAKE_CXX_FLAGS. Use -Og instead of -O0 (from https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html : [-Og] is a better choice than -O0 for producing debuggable code because some compiler passes that collect debug information are disabled at -O0) Fix LTO check (previously it would fail because it checked only CMAKE_CXX_FLAGS. This didn't work when properly enabling LTO through CMAKE_INTERPROCEDURAL_OPTIMIZATION). I'm not sure if I modified it correctly since I don't really understand what that check is trying to do in the first place. Check for Clang or GCC when applying compiler specific flags. This changes require CMake 3.9 or higher, but I don't think this will cause any issues.
-
- 10 Dec, 2020 1 commit
-
-
Ian Roddis authored
* - Adding Router::addDisconnectHandler to handle client disconnections. - Adding code to call handlers on client disconnection * - Adding test case for router addDisconnectHandler and associated functionality. * Changing to 2-space indentation and other formating changes to conform to LLVM style * More format changes Co-authored-by:
Ian Roddis <gitlab@ie2r.com>
-
- 30 Nov, 2020 1 commit
-
-
Igor [hyperxor] authored
-
- 29 Nov, 2020 2 commits
-
-
Igor [hyperxor] authored
-
Igor [hyperxor] authored
-
- 28 Nov, 2020 1 commit
-
-
Igor [hyperxor] authored
-
- 27 Nov, 2020 4 commits
-
-
Igor [hyperxor] authored
* Fix issue #842 * Add one more dot * Follow review suggestions * clang format + small change
-
Kip authored
Code simplification in RequestParser usage
-
hyperxor authored
-
hyperxor authored
-
- 26 Nov, 2020 2 commits
-
-
Mathieu Stefani authored
Repo has been moved to a new organization. Update the build status URL to reflect for organization change in travis-ci
-
hyperxor authored
-
- 25 Nov, 2020 1 commit
-
-
Kip authored
Fix several unnecessary copies of objects
-
- 24 Nov, 2020 2 commits
- 23 Nov, 2020 1 commit
-
-
Andrea Pappacoda authored
Fix #840
-
- 18 Nov, 2020 3 commits
-
-
Ian Roddis authored
* Adding an incrementing peer ID for easier connection identification on peer disconnect * Removing the private override of onDisconnection in http::Handler * Adding unit test for onDisconnection * - Exposing a peer handle from the ResponseWriter - Making disconnection test a bit more deterministic; there appears to be a race condition between server.shutdown() returning and the onDisconnection() callback succeeding. - Adding Active Connections info in test case to demonstrate usage. * Reducing verbosity of test output * Fixing getID vs getId call, removing block comment around other tests Co-authored-by:
Ian Roddis <gitlab@ie2r.com>
-
Dennis Jenkins authored
This reverts commit eb9102dd.
-
Ian Roddis authored
* Adding an incrementing peer ID for easier connection identification on peer disconnect * Removing the private override of onDisconnection in http::Handler * Adding unit test for onDisconnection * - Exposing a peer handle from the ResponseWriter - Making disconnection test a bit more deterministic; there appears to be a race condition between server.shutdown() returning and the onDisconnection() callback succeeding. - Adding Active Connections info in test case to demonstrate usage. * Reducing verbosity of test output Co-authored-by:
Ian Roddis <gitlab@ie2r.com>
-
- 28 Oct, 2020 1 commit
-
-
Kip authored
fix chunked transfer decoding
-
- 17 Oct, 2020 1 commit
-
-
Fabrice Fontaine authored
Don't build and install pistache_shared if the standard cmake BUILD_SHARED_LIBS is set to OFF Signed-off-by:
Fabrice Fontaine <fontaine.fabrice@gmail.com>
-
- 16 Oct, 2020 1 commit
-
-
Benjamin Beichler authored
- usage of complete body_.size() seems is wrong (only valid if there is one chunk?) - use separate var to count already received bytes of chunk
-
- 06 Oct, 2020 1 commit
-
-
Jiankun Yu authored
* fix issue-193 The client implementation isn't compliant with HTTP 1.1 standard, to be specific, it doesn't honor the "Connection: close" response header. As a result, whenever a new request is sent, a new tcp connection is opened to the server and is never closed (unless the server close it). The best place to close the connection is in Connection::OnDone() method, however, that method is provided too early, in the Connection::asyncPerform() method, where the Http::Response object is not yet available. It's also incorrect to blindly close the connection in OnDone() method, as there might be more data from server. This commit explicitly closes all opened connections on Client::shutdown(), to guarantee all network resources are recycled on that call. It's impossible to write any unit test case verify it, the connection pool is invisible to Client users. It passed manual tests on crafted scenarios. To verify this, start a Pistache server from the examples, then use the Client library to send some requests to the server, and don't terminate client side program. Use "netstat -an | grep <server_port>" to see if there are remaining connections in ESTABLISHED state after client.shutdown() is called. Signed-off-by:
Jiankun Yu <yujiankun@hotmail.com> * fix formatting issue
-