Skip to content

Commit

Permalink
Expose max_streams parameter in new_pool
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 13, 2025
1 parent 0288b3f commit ca5d30e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/multi.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ multi_cancel <- function(handle){
#' @export
#' @useDynLib curl R_multi_new
#' @rdname multi
new_pool <- function(total_con = 100, host_con = 6, multiplex = TRUE){
new_pool <- function(total_con = 100, host_con = 6, max_streams = 10, multiplex = TRUE){
pool <- .Call(R_multi_new)
multi_set(pool = pool, total_con = total_con, host_con = host_con, multiplex = multiplex)
multi_set(pool = pool, total_con = total_con, host_con = host_con, max_streams = max_streams, multiplex = multiplex)
}

multi_default <- local({
Expand Down
2 changes: 1 addition & 1 deletion man/multi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca5d30e

Please sign in to comment.