aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpshared.cpp
Commit message (Collapse)AuthorAgeFilesLines
* send payloads as duplicated handles (#240)Dan Engelbrecht2023-03-141-24/+130
| | | | | | | | | * 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
* 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
* 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-071-7/+18
| | | | | | | | * 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-291-0/+11
| | | | | memory copy (#174) When reading upstream, fall back to old rpc response to handle older instances.
* 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
|
* cbpackage: added initial support for marshaling of attachment by local referenceStefan Boberg2022-06-101-22/+326
| | | | this mode allows local clients to avoid unnecessary copying of data from zen and instead reference data directly
* Remove unused TotalAttachmentsSize (Mac warning)Joe Kirchoff2022-03-211-4/+0
|
* 'return std::move(local_object)' prevents copy elisionMartin Ridgers2021-10-251-1/+1
|
* Added preliminary CbPackageReader, for handling incremental compact binary ↵Stefan Boberg2021-09-281-10/+128
| | | | package streaming
* Minor CbPackage serialization tweaksStefan Boberg2021-09-161-5/+4
|
* Improved package serialization to allow round trippingStefan Boberg2021-09-161-16/+77
|
* Implemented intended package streaming API flow (but currently it "streams" ↵Stefan Boberg2021-09-131-8/+14
| | | | from memory)
* Introduced FormatPackageMessageBuffer() returning a ComositeBufferStefan Boberg2021-09-131-0/+16
|
* Changed interface for httpServerRequest::SessionId()/RequestId() so they ↵Stefan Boberg2021-09-131-0/+116
share storage and lazy eval logic They now call into ParseSessionId()/ParseRequestId() when required Eliminates redundant logic in derived implementations Also moved package transport code into httpshared.(cpp|h) for easier sharing with client code Added some I/O error reporting in http.sys related code Changed IHttpPackageHandler interface to support partially updated handling flow