Commit Graph
232 Commits
Author SHA1 Message Date
Fred Nicolson ceb16fddaa Create crunch42-analysis.yml 2021-03-19 23:11:54 +00:00
Fred Nicolson 68819cfa09 Removed redundant link option 2020-01-14 09:42:43 +00:00
Fred Nicolson 9d901396dc Removed redundant include 2020-01-14 09:39:21 +00:00
Fred Nicolson 69407a6ac5 Fix tests 2020-01-14 09:36:28 +00:00
Fred Nicolson 4624155351 Fix CI. Http parsing optimisation. 2020-01-13 10:52:33 +00:00
Fred Nicolson 5b2b92835e Add support for chunked HTTP response parsing 2019-11-25 16:29:06 +00:00
Fred Nicolson 41f600cd11 HTTP construction and parsing bug fixes
Don't trim received HTTP body if content length isn't specified.

Don't add duplicate \r\n after POST string data, if no POST data is specified.
2019-11-13 17:02:23 +00:00
Fred Nicolson a77d7e287a Add support for std::string_view to fr::Packet when available 2019-08-09 11:59:24 +01:00
Fred Nicolson a4adac8bf7 Better URL parsing 2019-06-26 13:50:01 +01:00
Fred Nicolson a515cf7c92 Added setters for fr::URL components + ability to get whole URL 2019-06-25 14:53:34 +01:00
Fred Nicolson 134940138a Update CMakeLists.txt 2019-05-17 13:06:39 +01:00
Fred Nicolson 81118e6606 Tweak send/receive visibility 2019-05-17 11:38:59 +01:00
fred 12f1d7b0ce Fix broken examples 2019-05-04 00:07:43 +01:00
Fred Nicolson 52ff3c6e27 Don't enable SSL by default 2019-05-03 23:25:53 +01:00
Fred Nicolson 32767786af Moving enums to enum classes 2019-05-01 17:06:09 +01:00
Fred Nicolson 277a74430c ODR Fixes 2019-05-01 13:08:13 +01:00
Fred Nicolson abd6dbebad Fix ODR violations 2019-05-01 10:27:44 +01:00
Fred Nicolson c23a77d4cc Cleaned up code. Updated documentation. 2019-04-30 17:29:03 +01:00
Fred Nicolson 7f1c25a73b Don't set SO_REUSEADDR on Windows 2019-04-26 09:59:57 +01:00
Fred Nicolson 00f13e41e7 Added the ability to set write timeouts
Similar to read timeouts.
2019-04-02 10:34:31 +01:00
Fred Nicolson 6814219cbb Bug fixes. fr::Socket::send_raw now behaves like receive_raw.
Added missing virtual destructors in abstract classes.
2019-03-21 16:24:22 +00:00
Fred Nicolson 7343529302 Add support for extracting std::vector<bool> from packets 2019-01-17 11:51:18 +00:00
Fred Nicolson 2c771fa46e Disable copying/moving of SSLContext 2019-01-15 13:12:16 +00:00
Fred Nicolson 992fbc885e Added NoRouteToHost error. Fixed Disconnect not being returned by Socket 2019-01-15 11:09:11 +00:00
Fred Nicolson d53cc86fb9 Fixed Windows build 2019-01-14 15:57:39 +00:00
Fred Nicolson 1ccde3f324 Fix tests 2019-01-14 13:38:35 +00:00
Fred Nicolson 16ee36f5d2 Merge remote-tracking branch 'origin/master' 2019-01-14 13:33:12 +00:00
Fred Nicolson cb532d41b2 Improvements to error reporting 2019-01-14 13:33:08 +00:00
Fred Nicolson 0610ccec2f Don't build concurrent HTTP example on Windows 2018-12-13 15:52:40 +00:00
Fred Nicolson 16bb072c12 Remove unused variable from HttpRequest. Remove redundant noexcept. 2018-12-11 16:02:42 +00:00
Fred Nicolson 8ee8e264b9 Remove Opaque object on failure to add to EPOLL
delete shouldn't have been used.
2018-11-28 21:51:22 +00:00
Fred Nicolson 094c211f7f Better Concurrent HTTP Server example 2018-11-28 13:44:44 +00:00
Fred Nicolson 60316be04c Fix Windows build error 2018-11-28 13:32:41 +00:00
Fred Nicolson 8ea8eafdd8 SocketSelector fixes. Set SO_REUSEPORT. 2018-11-28 13:21:50 +00:00
Fred Nicolson 87f8ee21b1 Fix missing \r after Connection:keep-alive header in HTTP requests 2018-11-26 16:40:18 +00:00
Fred Nicolson dd1322385b Return opaque data when socket is removed 2018-11-23 15:59:53 +00:00
Fred Nicolson dc247c556d Fix fr::Socket receive_all bug
Introduced with disconnect tweaking a few days ago.
2018-11-19 17:01:57 +00:00
Fred Nicolson 697573cbaf Don't throw an exception if epoll_wait is interrupted 2018-11-19 16:02:07 +00:00
Fred Nicolson 252a4788b5 Added ability to set/get HTTP response/request version
+ Additional tests
2018-11-19 15:23:10 +00:00
Fred Nicolson 9b22eb4604 SocketSelector bug fixes. Don't disconnect socket on read/write error. 2018-11-16 16:45:18 +00:00
Fred Nicolson 4377dcc66e Use working version of gtest 2018-10-25 10:57:04 +01:00
Fred Nicolson 5aecba03ef URL Parse fix 2018-10-25 10:41:21 +01:00
Fred Nicolson f26225946c Fix cmake 2018-10-01 15:40:55 +01:00
Fred Nicolson 0ae3887d28 Merge remote-tracking branch 'origin/master' 2018-10-01 15:36:18 +01:00
Fred Nicolson 322f53841b Removed SocketReactor. Switched SocketSelector implementation to EPOLL
Should result in better performance, although a Windows implementation is not yet ready.
2018-10-01 15:36:13 +01:00
Fred Nicolson 6f80a61d92 Update LICENSE.md 2018-08-22 20:38:35 +01:00
Fred Nicolson f5d8dd201b Add additional fr::Packet utility functions. Fixed some build warnings.
Fixed some sign comparison warnings.

Added utility functions to fr::Packet's for:

Getting read cursor position.
Relative read cursor seeking.
Asserting that data remains in the packet
Getting the amount of data remaining
Getting the size of the packet
2018-08-22 16:18:11 +01:00
Fred Nicolson 257e918646 Fix Windows build error 2018-08-16 11:42:22 +01:00
Fred Nicolson 6a0cf23519 Don't reconfigure socket if not connected 2018-08-16 11:37:48 +01:00
Fred Nicolson 8a4ee937b1 Added ability to set/get recv timeouts. Fixed HTTP receive bug.
Recv timeouts can now be specified for sockets, which is the maximum amount of time to wait before returning during a receive. They will return WouldBlock if no data was received during the wait time.

Receiving a HTTP request in non-blocking mode will no longer fail.
2018-08-16 11:24:52 +01:00