Skip to content
Browse files

handle ssl_closed message

  • Loading branch information...
1 parent 605c48c commit 23bae1004d020e8baff628995aad4fcc78f3ee16 @wangjia wangjia committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/mochiweb_http.erl
View
3 src/mochiweb_http.erl
@@ -63,6 +63,9 @@ request(Socket, Body) ->
{tcp_closed, _} ->
mochiweb_socket:close(Socket),
exit(normal);
+ {ssl_closed, _} ->
+ mochiweb_socket:close(Socket),
+ exit(normal);
_Other ->
handle_invalid_request(Socket)
after ?REQUEST_RECV_TIMEOUT ->

0 comments on commit 23bae10

Please sign in to comment.
Something went wrong with that request. Please try again.