Skip to content

Commit

Permalink
Merge pull request #25 from darius-janusauskas/fix_fd_limit_issue
Browse files Browse the repository at this point in the history
Close http connection after printing
  • Loading branch information
m0wfo authored Aug 31, 2020
2 parents bb1e859 + cfd3bc6 commit fb78905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/cups.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ static VALUE cups_print(VALUE self)
job_id = cupsPrintFile2(http, target, fname, title, num_options, options); // Do it. "rCups" should be the filename/path
//
// cupsFreeOptions(num_options, options);
httpClose(http);

rb_iv_set(self, "@job_id", INT2NUM(job_id));
return Qtrue;
Expand Down

0 comments on commit fb78905

Please sign in to comment.