Re: TLS session ID re-use broken in 7.77.0

2021-06-08 Thread Daniel Jeliński via curl-library
Simple repro: >curl -vI --http1.1 https://example.com/[1-3] -H"Connection:close" output of the old CURL version contains "* SSL re-using session ID"; output of 7.77.0 does not. Wireshark confirms that the old version sent PSK in client hello, the new version did not. curl 7.77 downloaded here:

Re: Considering a version 8 at some point...

2020-06-30 Thread Daniel Jeliński via curl-library
Hello, Would it be a good time to start a stable (long-term support) version? Like in, version 7 would still get bug fixes, but no new features, and would be maintained until version 9 (or 10) goes out. Regards, Daniel ---

Re: a HTTP/2 window sizing dilemma!

2020-02-21 Thread Daniel Jeliński via curl-library
Well then, I'd vote in favor of not allowing pause when CURLMOPT_PIPELINING is set to anything other than CURLPIPE_NOTHING. I'm not a fan of changes that may negatively impact performance, as you may guess. And I never used pause anyway. Regards, Daniel

Re: a HTTP/2 window sizing dilemma!

2020-02-21 Thread Daniel Jeliński via curl-library
Sounds like the problem HPN-SSH tried to solve: https://www.psc.edu/index.php/hpn-ssh/638 I like their approach, but I'm not sure how they got hold of the current TCP receive window size; the only value I could find was receive buffer size, which is not necessarily relevant here. If you decide to

Re: FTP error 426 not handled?

2020-02-19 Thread Daniel Jeliński via curl-library
wt., 18 lut 2020 o 15:43 Christian Schmitz via curl-library napisał(a): > First case wit error 426: What Curl version? Quick googling reveals that there was a bug [1] in FTP handling, which was fixed in 7.45 > Second log with no response: > > > We are completely uploaded and fine > Remembering

Re: SSL session ID reuse - clarification needed

2020-01-04 Thread Daniel Jeliński via curl-library
Thanks guys! That's exactly what I need. --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html

SSL session ID reuse - clarification needed

2020-01-03 Thread Daniel Jeliński via curl-library
Hi all, I see that libcurl supports SSL session ID cache already, unless CURLOPT_SSL_SESSIONID_CACHE is cleared. However, I'm having a hard time finding information about the scope of session ID reuse: - Are session IDs reused only within an easy handle or globally for all handles within the

Re: How to do optimal FTP upload for multiple files?

2019-07-18 Thread Daniel Jeliński via curl-library
pt., 19 lip 2019 o 00:14 Daniel Stenberg napisał(a): > > On Thu, 18 Jul 2019, Daniel Jeliński via curl-library wrote: > > > As for the connection timeout, it appears to be a well known problem with > > FTP on slow connections with oversized buffers. I just found a 10

Re: How to do optimal FTP upload for multiple files?

2019-07-18 Thread Daniel Jeliński via curl-library
7.65 will be fine. Actually the first version with that feature was 7.61.1, but any version since then should be good. --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette:

Re: How to do optimal FTP upload for multiple files?

2019-07-18 Thread Daniel Jeliński via curl-library
Taras, Thanks for pointing that out. The function looks good. Buffer autotuning was only introduced in curl 7.61, so the app using 7.57 will use the default (slow) buffer sizes. You shouldn't need to set UPLOAD_BUFFERSIZE to get good upload speeds on 7.65.1. As for the connection timeout, it

Re: How to do optimal FTP upload for multiple files?

2019-07-17 Thread Daniel Jeliński via curl-library
> Neigher users nor I run the app in VirtualBox. This is an ordinary desktop > application being run on desktop operating systems running on "bare metal". I see. What's the performance of curl on the same connection? I took a quick look at your code; noticed that you use CURLOPT_READDATA without

Re: How to do optimal FTP upload for multiple files?

2019-07-17 Thread Daniel Jeliński via curl-library
> Slowness was reported by few users on Windows 10 x64. Slowness (and, in other > case, timeouts) were reported against couple of totally different FTP servers > around the globe. At least 5 different (from my user's logs) servers run by > different companies, so unfortunately there's no way to

Re: libssh2 optimization [was: Re: Windows users! Help us test upload performance tuning?]

2018-09-02 Thread Daniel Jeliński via curl-library
niedz., 2 wrz 2018 o 13:33 Jan Ehrhardt via curl-library napisał(a): > > Do you have a compiled version somewhere? I'm hacking this on Linux, I don't have a proper testing environment on my Windows machine. > I tried to build my own with the 3 patches: > > 1. winsock > 2. oploadbuffer 512 KB >

Re: libssh2 optimization [was: Re: Windows users! Help us test upload performance tuning?]

2018-08-26 Thread Daniel Jeliński via curl-library
niedz., 26 sie 2018 o 03:36 Jan Ehrhardt via curl-library napisał(a): > Do you have any stats about the performanceimprovement? Workbench: I am running curl against openssh 7.2 shipped with Ubuntu. The server is running on the same machine as the client. I am uploading 1GB file to /dev/null on

libssh2 optimization [was: Re: Windows users! Help us test upload performance tuning?]

2018-08-25 Thread Daniel Jeliński via curl-library
sob., 11 sie 2018 o 01:05 Daniel Stenberg napisał(a): > It would require that libssh2 provides such an API, which it currently doesn't > (and I don't know anyone working on it). Sent a PR to libssh2 for that: https://github.com/libssh2/libssh2/pull/264 > I still haven't checked what libssh

Re: Using A Different Socket For Requests

2018-08-22 Thread Daniel Jeliński via curl-library
W dniu środa, 22 sierpnia 2018 Isaiah Banks via curl-library < curl-library@cool.haxx.se> napisał(a): > What I'd like to do is create a custom socket for all curl requests to go through within a web application. > I'm creating this socket within Python application but would like an app written in

Re: Windows users! Help us test upload performance tuning?

2018-08-18 Thread Daniel Jeliński via curl-library
W dniu sobota, 18 sierpnia 2018 Jan Ehrhardt via curl-library < curl-library@cool.haxx.se> napisał(a): > We had a real oops when we tested the same 178 MB over plain FTP: > > curl x64 512KB upload buffer FTP: 16 seconds > https upload php uploadprogress : 489 seconds I don't believe encryption

Re: Windows users! Help us test upload performance tuning?

2018-08-10 Thread Daniel Jeliński via curl-library
pt., 10 sie 2018 o 23:08 Daniel Stenberg napisał(a): > [...] libssh2 could offer a better API that's more suited to send (and > receive) SFTP data. I like that; if we had the sftp_write function acknowledge data as soon as it is put in socket buffer, we could get much faster transfers. In

Re: Windows users! Help us test upload performance tuning?

2018-08-10 Thread Daniel Jeliński via curl-library
Ok, so let's put Linux to a test. 0. Patch CURL: #define UPLOAD_BUFSIZE (1<<19) 1. Create a large file. 1 TB looks good: dd if=/dev/zero of=testfile bs=1 count=0 seek=1T The file is sparse, so disk operations won't block us. 2. Upload to /dev/null: curl -u user:pass -k sftp://127.0.0.1/dev/null -T

Re: a URL API ?

2018-08-09 Thread Daniel Jeliński via curl-library
2018-08-09 14:15 GMT+02:00 Daniel Stenberg via curl-library : > ... or should it perhaps just skip the *first* '=' ? I don't think any URL parsing library cares about = beyond the first one. Which is why = in name may pose a problem, but in value probably won't. I'd skip all.

Re: a URL API ?

2018-08-09 Thread Daniel Jeliński via curl-library
2018-08-09 10:48 GMT+02:00 Daniel Stenberg via curl-library : > Say we want to append this to the query: > > char *append = "=44"; Well assuming we want to use the API to build URL based on HTML form with GET action, curl_url_query_append suggested by Geoff would be much nicer. In particular, I

Re: Windows users! Help us test upload performance tuning?

2018-08-09 Thread Daniel Jeliński via curl-library
2018-08-09 1:42 GMT+02:00 Gisle Vanem via curl-library : > I also just tested with 'curl sftp//:' with the latest libssh2 > and the new 'SIO_IDEAL_SEND_BACKLOG_QUERY' option. 'sftp://' is > still 6 times slower than ftp against the same server in Denmark. > > 33.153s vs 5.4s for a 10 MByte file.

Re: Include CA Bundle at Build Time on Windows

2018-08-07 Thread Daniel Jeliński via curl-library
2018-08-07 20:16 GMT+02:00 Dillon Korman via curl-library : > How do you specify the location of a CA bundle at build time on Windows? Windows builds use schannel (Windows SSL implementation) by default; with that you don't need CA bundle. Are you building with OpenSSL?