CURLMOPT_MAX_PIPELINE_LENGTH.3 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 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.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. .\" * SPDX-License-Identifier: curl
  22. .\" *
  23. .\" **************************************************************************
  24. .\"
  25. .TH CURLMOPT_MAX_PIPELINE_LENGTH 3 "4 Nov 2014" libcurl libcurl
  26. .SH NAME
  27. CURLMOPT_MAX_PIPELINE_LENGTH \- maximum number of requests in a pipeline
  28. .SH SYNOPSIS
  29. .nf
  30. #include <curl/curl.h>
  31. CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_MAX_PIPELINE_LENGTH,
  32. long max);
  33. .fi
  34. .SH DESCRIPTION
  35. No function since pipelining was removed in 7.62.0.
  36. Pass a long. The set \fBmax\fP number will be used as the maximum amount of
  37. outstanding requests in an HTTP/1.1 pipeline. This option is only used for
  38. HTTP/1.1 pipelining, not for HTTP/2 multiplexing.
  39. When this limit is reached, libcurl will use another connection to the same
  40. host (see \fICURLMOPT_MAX_HOST_CONNECTIONS(3)\fP), or queue the request until
  41. one of the pipelines to the host is ready to accept a request. Thus, the
  42. total number of requests in-flight is \fICURLMOPT_MAX_HOST_CONNECTIONS(3)\fP *
  43. \fICURLMOPT_MAX_PIPELINE_LENGTH(3)\fP.
  44. .SH DEFAULT
  45. 5
  46. .SH PROTOCOLS
  47. HTTP(S)
  48. .SH EXAMPLE
  49. .nf
  50. CURLM *m = curl_multi_init();
  51. /* set a more conservative pipe length */
  52. curl_multi_setopt(m, CURLMOPT_MAX_PIPELINE_LENGTH, 3L);
  53. .fi
  54. .SH AVAILABILITY
  55. Added in 7.30.0
  56. .SH RETURN VALUE
  57. Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not.
  58. .SH "SEE ALSO"
  59. .BR CURLMOPT_PIPELINING "(3), " CURLMOPT_MAX_HOST_CONNECTIONS "(3), "