CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.3 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2022, 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_CHUNK_LENGTH_PENALTY_SIZE 3 "4 Nov 2014" "libcurl 7.39.0" "curl_multi_setopt options"
  26. .SH NAME
  27. CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE \- chunk length threshold for pipelining
  28. .SH SYNOPSIS
  29. .nf
  30. #include <curl/curl.h>
  31. CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE,
  32. long size);
  33. .fi
  34. .SH DESCRIPTION
  35. No function since pipelining was removed in 7.62.0.
  36. Pass a long with a \fBsize\fP in bytes. If a transfer in a pipeline is
  37. currently processing a chunked (Transfer-encoding: chunked) request with a
  38. current chunk length larger than \fICURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3)\fP,
  39. that pipeline will not be considered for additional requests, even if it is
  40. shorter than \fICURLMOPT_MAX_PIPELINE_LENGTH(3)\fP.
  41. .SH DEFAULT
  42. The default value is 0, which means that the penalization is inactive.
  43. .SH PROTOCOLS
  44. HTTP(S)
  45. .SH EXAMPLE
  46. .nf
  47. CURLM *m = curl_multi_init();
  48. long maxchunk = 10000;
  49. curl_multi_setopt(m, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, maxchunk);
  50. .fi
  51. .SH AVAILABILITY
  52. Added in 7.30.0
  53. .SH RETURN VALUE
  54. Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not.
  55. .SH "SEE ALSO"
  56. .BR CURLMOPT_PIPELINING "(3), " CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE "(3), "
  57. .BR CURLMOPT_MAX_PIPELINE_LENGTH "(3), "