Skip to content
Browse files

prevent crash

  • Loading branch information...
1 parent e1394ed commit 959664c9be4944c6c140de6a29e5453135c91029 @benoitc benoitc committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 apps/couch_httpd/src/couch_httpd_protocol.erl
View
4 apps/couch_httpd/src/couch_httpd_protocol.erl
@@ -63,6 +63,10 @@ request(#hstate{transport=Transport, socket=Socket}=State) ->
{ssl_closed, _} ->
Transport:close(Socket),
exit(normal);
+ {tcp_error,_,emsgsize} ->
+ % R15B02 returns this then closes the socket, so close and exit
+ Transport:close(Socket),
+ exit(normal);
_Other ->
handle_invalid_request(State)
after ?REQUEST_RECV_TIMEOUT ->

0 comments on commit 959664c

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