Skip to content

Commit

Permalink
rm-flush-response-body: inline it
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed May 6, 2020
1 parent e51aaac commit 3fa50f6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/server_connection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,12 @@ let read t bs ~off ~len =
let read_eof t bs ~off ~len =
read_with_more t bs ~off ~len Complete

let flush_response_body t =
if is_active t then
let reqd = current_reqd_exn t in
Reqd.flush_response_body reqd
;;

let next_write_operation t =
advance_request_queue_if_necessary t;
flush_response_body t;
if is_active t
then (
let reqd = current_reqd_exn t in
Reqd.flush_response_body reqd);
Writer.next t.writer

let report_write_result t result =
Expand Down

0 comments on commit 3fa50f6

Please sign in to comment.