Skip to content

ext/curl: Add CURLINFO_POSTTRANSFER_TIME_T support #15849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Ayesh
Copy link
Member

@Ayesh Ayesh commented Sep 12, 2024

libcurl ref: CURLINFO_POSTTRANSFER_TIME_T

CURLINFO_POSTTRANSFER_TIME_T is a libcurl info option that returns the time it took to "post" the transfer. Available since libcurl 8.10.0

This value is also exposed as posttransfer_time_us in the curl_getinfo() return value when the $option parameter is not passed.

@Ayesh
Copy link
Member Author

Ayesh commented Sep 12, 2024

CI will skip the test because none of the default repos include curl 8.10, but I did run the tests on a custom curl build.

I also intentionally did not add this to the NEWS file that will likely merge-conflict when we come across this.

@devnexen
Copy link
Member

seems useful additional info otherwise.

@devnexen
Copy link
Member

look fine by me, kind of new feature tough.

@Ayesh
Copy link
Member Author

Ayesh commented Sep 15, 2024

Thank you for your review @devnexen.

@Ayesh Ayesh force-pushed the curl-8-10-consts branch 3 times, most recently from c4d792b to 02bdd6f Compare September 24, 2024 05:11
@SakiTakamachi
Copy link
Member

@Ayesh

Since it's a very minor change, I think I can merge this.

Please resolve conflicts before merging.

libcurl ref: [`CURLINFO_POSTTRANSFER_TIME_T`](https://curl.se/libcurl/c/CURLINFO_POSTTRANSFER_TIME_T.html)

`CURLINFO_POSTTRANSFER_TIME_T` is a libcurl info option that returns
the time it took to "post" the transfer. Available since libcurl 8.10.0

This value is also exposed as `posttransfer_time_us` in the
`curl_getinfo()` return value when the `$option` parameter is not
passed.
@Ayesh
Copy link
Member Author

Ayesh commented Sep 24, 2024

Thank you @SakiTakamachi. I rebased and force-pushed.

@cmb69 cmb69 merged commit 99bceda into php:master Sep 24, 2024
9 of 10 checks passed
@cmb69
Copy link
Member

cmb69 commented Sep 24, 2024

Thank you!

Ayesh added a commit to Ayesh/doc-en that referenced this pull request Nov 14, 2024
Commit: php/php-src#15849
PHP.Watch: [PHP 8.4: Curl: `curl_getinfo` - `CURLINFO_POSTTRANSFER_TIME_T` support](https://php.watch/versions/8.4/CURLINFO_POSTTRANSFER_TIME_T)
Ayesh added a commit to Ayesh/doc-en that referenced this pull request Nov 15, 2024
Commit: php/php-src#15849
PHP.Watch: [PHP 8.4: Curl: `curl_getinfo` - `CURLINFO_POSTTRANSFER_TIME_T` support](https://php.watch/versions/8.4/CURLINFO_POSTTRANSFER_TIME_T)
Ayesh added a commit to Ayesh/doc-en that referenced this pull request Nov 15, 2024
Commit: php/php-src#15849
PHP.Watch: [PHP 8.4: Curl: `curl_getinfo` - `CURLINFO_POSTTRANSFER_TIME_T` support](https://php.watch/versions/8.4/CURLINFO_POSTTRANSFER_TIME_T)
Ayesh added a commit to Ayesh/doc-en that referenced this pull request Nov 16, 2024
Commit: php/php-src#15849
PHP.Watch: [PHP 8.4: Curl: `curl_getinfo` - `CURLINFO_POSTTRANSFER_TIME_T` support](https://php.watch/versions/8.4/CURLINFO_POSTTRANSFER_TIME_T)
Girgias pushed a commit to php/doc-en that referenced this pull request Nov 16, 2024
Commit: php/php-src#15849
PHP.Watch: [PHP 8.4: Curl: `curl_getinfo` - `CURLINFO_POSTTRANSFER_TIME_T` support](https://php.watch/versions/8.4/CURLINFO_POSTTRANSFER_TIME_T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants