Skip to content

Commit

Permalink
Merge pull request taf2#281 from paulodiniz/feature/setting_maxconnects
Browse files Browse the repository at this point in the history
implementing set of CURLOPT_MAXCONNECTS
  • Loading branch information
taf2 committed Jan 20, 2016
2 parents 032339e + e533812 commit f5ee295
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/curb_easy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3201,6 +3201,9 @@ static VALUE ruby_curl_easy_set_opt(VALUE self, VALUE opt, VALUE val) {
case CURLOPT_POST: {
curl_easy_setopt(rbce->curl, CURLOPT_POST, rb_type(val) == T_TRUE);
} break;
case CURLOPT_MAXCONNECTS: {
curl_easy_setopt(rbce->curl, CURLOPT_MAXCONNECTS, FIX2LONG(val));
} break;
case CURLOPT_POSTFIELDS: {
curl_easy_setopt(rbce->curl, CURLOPT_POSTFIELDS, NIL_P(val) ? NULL : StringValueCStr(val));
} break;
Expand Down

0 comments on commit f5ee295

Please sign in to comment.