Comments (4)
Hi Brian,
request->readLine
returns data as it becomes available, ie as soon as there's a complete header line separated by \r\n
.
1024
is just a protection against buffer overflow, an instruction never to write more than 1024
bytes into the buffer.
What you're observing is probably due to this check: https://github.com/cern-it-sdc-id/davix/blob/devel/src/modules/copy/copy.cpp#L332
The performance information is only updated once a second to avoid printing too much text into the terminal. I could make this behaviour configurable if you're interested, ie changing the time interval, or disabling altogether and printing performance markers as they're received.
from davix.
Look at the case of the first performance marker (assuming no data is buffered in NEONRequest
).
The readLine
method calls readSegment
here:
Then, readSegment
invokes readBlock
(which appears to pull in a single encoded chunk from the HTTP transfer) repeatedly:
As far as I can tell, this is repeated until all 1024 characters (the buffer size in this case) are read.
Playing with a few transfers of multi-GB files with performance markers sent every 2 seconds, it seems that the symptoms match blocking behavior.
from davix.
ahhh, yes... you're totally right.
I committed a fix, want to try?
from davix.
Appears to work -- thanks!
from davix.
Related Issues (20)
- Unit tests fail when run by more than one user on the same machine HOT 3
- Introspect redirections for HTTP TPC xfers HOT 1
- CVE-2022-32221 in bundled curl library HOT 2
- Wrong format for downloaded files for release 0.8.4 HOT 5
- CVE-2023-38545 in bundled curl library HOT 1
- 1 test fails, and several tests hang
- Recursively deleting directories with davix-rm not working HOT 1
- Return value of `DavFile::get` is -1 but no error is thrown HOT 1
- [0.7.6.200.3c48eab] davix-get failing auth with DAVIX_USE_LIBCURL HOT 2
- how to use in wndows? HOT 4
- Cannot build against system libcurl HOT 1
- CTest tests removed HOT 6
- Uploading large files (streaming) to Google S3 fail (issue with multi-part)
- davix version 0.8.0 cannot authenticate using username and password HOT 14
- The role of the different branches is unclear HOT 1
- Update CMake FindPackage Python to allow Python3 on macOS HOT 7
- Missing libneon.a in 0.8.1 HOT 4
- Please add instructions how to run tests to the README
- Copyrighted song lyrics in codebase HOT 2
- Infinite loop in davix slow unit tests when using external libcurl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from davix.