aboutsummaryrefslogtreecommitdiff
path: root/zenhttp
Commit message (Collapse)AuthorAgeFilesLines
* moved source directories into `/src` (#264)Stefan Boberg2023-05-0220-7872/+0
| | | | | | * moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees
* made Ref<> constructor explicit (#262)Stefan Boberg2023-04-271-4/+5
| | | This change makes the Ref<> constructor explicit, which can help avoid unnecessary overheads and other accidents
* Catch any errors throw in HttpAsioServer() destructor and log error to avoid ↵Dan Engelbrecht2023-04-261-1/+8
| | | | abort due to throwing in destructor
* only strip accept type suffix if it can be parsed to a known type (#258)Dan Engelbrecht2023-04-261-1/+4
| | | | * only strip accept type suffix if it can be parsed to a known type * changelog
* fixed dashboard file serving bug (#255)Stefan Boberg2023-04-243-9/+11
| | | | | a recent change which introduced support for specifying accept: implicitly via the file extension in the URI caused fallout in the dashboard which would fail to serve any content because the extension was stripped from the RelativeUri accessor. This change fixes that by retaining a copy of the Uri string view which includes the suffix additionally, in order to test this change with both asio/http.sys paths I made the path used for all tests configurable in zenserver-test which involved pulling in a change from sb/proto which makes testing configuration a bit more flexible
* oops: clang-formatStefan Boberg2023-04-191-3/+3
|
* put forcelink calls into ZEN_WITH_TESTS blocksStefan Boberg2023-04-191-0/+4
|
* tweaks for enabling unity buildsStefan Boberg2023-04-194-2/+12
| | | | | | | | | | mostly changes to make sure anonymous namespaces don't clash and a change to avoid windows headers from leaking into other compilation units unity builds are not yet enabled by default, but can be enabled by uncommenting this line in the root `xmake.lua` ``` --add_rules("c++.unity_build") ```
* Support for HTTP range header (#245)Per Larsson2023-04-195-0/+102
| | | | | | | | | | | * Support for HTTP range header. * Implement http range for HTTP sys. * Validate range parameters. --------- Co-authored-by: Stefan Boberg <[email protected]>
* send payloads as duplicated handles (#240)Dan Engelbrecht2023-03-142-30/+137
| | | | | | | | | * send payloads as duplicated handles if requestor provides process id and allows local file references. * linux/macos fixes * tests * fix access rights when duplicating handle * fix closing of duplicated handles on error * cleanup * changelog
* Fix httpsys async response (#237)Dan Engelbrecht2023-02-211-2/+2
| | | | * Fix HttpSysServerRequest::WriteResponseAsync to use async path base on IsAsyncResponseEnabled() flag * changelog
* Changed so CompressedBuffer::DecodeRawHash returns IoHash just like on the ↵Stefan Boberg2022-12-121-1/+1
| | | | | | UE side (#208) removed all use of IoHash::FromBLAKE3() caused by interactions with CompressedBuffer APIs
* Fix http parsing crash (#205)Dan Engelbrecht2022-12-081-29/+36
| | | | * Don't continue parsing http requests if we get an error. * changelog
* Fix asio port sharing options (#203)Dan Engelbrecht2022-12-071-4/+26
| | | | * Windows: explicitly set the special SO_EXCLUSIVEADDRUSE flag * changelog
* optimizations (#200)Dan Engelbrecht2022-12-071-12/+17
| | | | | | | | | | | | | * Use direct file read and direct buffer allocation for small IoBuffer materalization * Reduce range of materialized data in CompositeBuffer reading CompressedBuffer header reading often only need a small part and not the whole file * reduce lock contention in IoBuffer::Materialize * Reduce parsing of compressed headers Validate header type at decompression * faster CreateDirectories - start from leaf going up and recurse back * optimized BufferHeader::IsValid * Add ValidateCompressedHeader to use when we don't need the actual compressed data Validate that we always get compressed data in CidStore::AddChunk * changelog
* Add `import-project` and `export-project` (#183)Dan Engelbrecht2022-11-181-29/+62
| | | * Add `import-project` and `export-project` command line parsing
* Support file reference in package message (#184)Dan Engelbrecht2022-11-072-9/+29
| | | | | | | | * Fix packed message parsing for absolute path * Always enable are sharing when opening files as IoBuffers. * Allow control over sending partial files as localfile ref * Check "AcceptFlags" field in RPC message for allowing localfile ref in reply * make oplog entry add operations ZEN_DEBUG level logs * changelog
* De/reduce buffer creation in parsepackedmessage (#175)Dan Engelbrecht2022-09-301-12/+37
| | | | | * Don't create call CreateBuffer for attachement data that we only read and not keep * changelog * don't read oplog attachments into memory just to do a redundant store of them
* Format all rpc package responses using `FormatPackageMessageBuffer` to avoid ↵Dan Engelbrecht2022-09-292-0/+13
| | | | | memory copy (#174) When reading upstream, fall back to old rpc response to handle older instances.
* Adjust errors vs warnings messages (#160)Dan Engelbrecht2022-09-082-12/+12
| | | | * demote a number of ZEN_ERROR to ZEN_WARN * changelog
* De/fix crash on non responding upstream (#145)Dan Engelbrecht2022-08-191-1/+4
| | | * Fix ZenStructuredCacheClient lifetime issues
* fixed merge mistake which caused a build errorStefan Boberg2022-06-161-1/+1
|
* asio: added some context to error reportingStefan Boberg2022-06-161-2/+8
|
* clang-format fixStefan Boberg2022-06-101-2/+2
|
* fixed Linux build issueStefan Boberg2022-06-101-2/+2
|
* fixed issue in CbPackage marshaling of local referencesStefan Boberg2022-06-101-1/+3
|
* clang-format fixesStefan Boberg2022-06-101-1/+1
|
* cbpackage: added initial support for marshaling of attachment by local referenceStefan Boberg2022-06-102-30/+380
| | | | this mode allows local clients to avoid unnecessary copying of data from zen and instead reference data directly
* http: added some more content-type aliases/suffixesStefan Boberg2022-06-101-10/+27
|
* http: fixed extension parsing logicStefan Boberg2022-06-102-2/+2
| | | | the previous version did not remove the trailing dot from the extension-less URI
* asio: added some logging to indicate concurrencyStefan Boberg2022-06-071-0/+4
|
* Helper function for sending compact binary array HTTP response.Per Larsson2022-03-232-0/+17
|
* move workthreadpool to zencore (#63)Dan Engelbrecht2022-03-223-124/+1
|
* Remove unused TotalAttachmentsSize (Mac warning)Joe Kirchoff2022-03-211-4/+0
|
* Missing return statement in websocket.hDan Engelbrecht2022-03-191-1/+1
|
* Added websocket stream request/response handling.Per Larsson2022-03-192-33/+134
|
* Added some new mime types; javascript, css, png and icoMartin Ridgers2022-03-151-0/+20
|
* Added missing override specifier.Per Larsson2022-02-221-2/+2
|
* Fixed crashing websocket test.Per Larsson2022-02-221-7/+8
|
* Removed using enum statements.Per Larsson2022-02-221-9/+5
|
* Changed log level.Per Larsson2022-02-211-1/+1
|
* Added unhandled switch in websocket client.Per Larsson2022-02-211-0/+4
|
* Added unhandled switch enumerations.Per Larsson2022-02-211-0/+6
|
* Added missing parens around sizeof.Per Larsson2022-02-211-1/+1
|
* Initial support for websockets.Per Larsson2022-02-212-0/+1761
|\
| * Removed optional offset for GetView.Per Larsson2022-02-211-1/+1
| |
| * Added option to enable websockets.Per Larsson2022-02-212-29/+30
| |
| * Refactored websocket message.Per Larsson2022-02-212-211/+461
| |
| * Basic websocket service and test.Per Larsson2022-02-182-54/+213
| |
| * Web socket client is shared between I/O thead and client.Per Larsson2022-02-182-112/+127
| |