CURLOPT_PIPEWAIT.3 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at https://curl.haxx.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" **************************************************************************
  22. .\"
  23. .TH CURLOPT_PIPEWAIT 3 "May 01, 2016" "libcurl 7.61.1" "curl_easy_setopt options"
  24. .SH NAME
  25. CURLOPT_PIPEWAIT \- wait for pipelining/multiplexing
  26. .SH SYNOPSIS
  27. #include <curl/curl.h>
  28. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PIPEWAIT, long wait);
  29. .SH DESCRIPTION
  30. Set \fIwait\fP to 1L to tell libcurl to prefer to wait for a connection to
  31. confirm or deny that it can do pipelining or multiplexing before continuing.
  32. When about to perform a new transfer that allows pipelining or multiplexing,
  33. libcurl will check for existing connections to re-use and pipeline on. If no
  34. such connection exists it will immediately continue and create a fresh new
  35. connection to use.
  36. By setting this option to 1 - and having \fICURLMOPT_PIPELINING(3)\fP enabled
  37. for the multi handle this transfer is associated with - libcurl will instead
  38. wait for the connection to reveal if it is possible to pipeline/multiplex on
  39. before it continues. This enables libcurl to much better keep the number of
  40. connections to a minimum when using pipelining or multiplexing protocols.
  41. The effect thus becomes that with this option set, libcurl prefers to wait and
  42. re-use an existing connection for pipelining rather than the opposite: prefer
  43. to open a new connection rather than waiting.
  44. The waiting time is as long as it takes for the connection to get up and for
  45. libcurl to get the necessary response back that informs it about its protocol
  46. and support level.
  47. .SH DEFAULT
  48. 0 (off)
  49. .SH PROTOCOLS
  50. HTTP(S)
  51. .SH EXAMPLE
  52. .SH AVAILABILITY
  53. Added in 7.43.0
  54. .SH RETURN VALUE
  55. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  56. .SH "SEE ALSO"
  57. .BR CURLOPT_FORBID_REUSE "(3), " CURLOPT_FRESH_CONNECT "(3), "
  58. .BR CURLMOPT_PIPELINING "(3), " CURLMOPT_MAX_HOST_CONNECTIONS "(3), "