Skip to content

Commit

Permalink
upgrade: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed Oct 15, 2019
1 parent 2298f9c commit cc50482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/async/async_echo_post.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let main port max_accepts_per_batch () =
let where_to_listen = Tcp.Where_to_listen.of_port port in
Tcp.(Server.create_sock ~on_handler_error:`Raise
~backlog:10_000 ~max_connections:10_000 ~max_accepts_per_batch where_to_listen)
(Server.create_connection_handler ~request_handler ~error_handler)
(Server.create_connection_handler ~upgrade_handler:Raise ~request_handler ~error_handler)
>>= fun _server ->
Stdio.printf "Listening on port %i and echoing POST requests.\n" port;
Stdio.printf "To send a POST request, try one of the following\n\n";
Expand Down
2 changes: 1 addition & 1 deletion examples/lwt/lwt_echo_post.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let main port =
Lwt.async (fun () ->
Lwt_io.establish_server_with_client_socket
listen_address
(Server.create_connection_handler ~request_handler ~error_handler)
(Server.create_connection_handler ~upgrade_handler:Raise ~request_handler ~error_handler)
>|= fun _server ->
Stdio.printf "Listening on port %i and echoing POST requests.\n" port;
Stdio.printf "To send a POST request, try one of the following\n\n";
Expand Down

0 comments on commit cc50482

Please sign in to comment.