Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stopped tcp_closed errors from cuasing crashes and removed dialyzer f…

…rom default make target
  • Loading branch information...
commit 6754798b2e271c6a09cac16b487a6b1969882620 1 parent d824491
@srstrong srstrong authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  Makefile
  2. +2 −2 src/ibrowse_http_client.erl
View
2  Makefile
@@ -3,7 +3,7 @@ IBROWSE_VSN = $(shell sed -n 's/.*{vsn,.*"\(.*\)"}.*/\1/p' src/ibrowse.app.src)
DIALYZER_PLT=$(CURDIR)/.dialyzer_plt
DIALYZER_APPS=erts kernel stdlib ssl crypto public_key asn1 compiler hipe edoc gs syntax_tools inets xmerl runtime_tools mnesia
-all: compile dialyzer
+all: compile
compile:
./rebar compile
View
4 src/ibrowse_http_client.erl
@@ -215,11 +215,11 @@ handle_info({stream_close, _Req_id}, State) ->
handle_info({tcp_closed, _Sock}, State) ->
do_trace("TCP connection closed by peer!~n", []),
handle_sock_closed(State),
- {stop, connection_closed, State};
+ {stop, normal, State};
handle_info({ssl_closed, _Sock}, State) ->
do_trace("SSL connection closed by peer!~n", []),
handle_sock_closed(State),
- {stop, connection_closed, State};
+ {stop, normal, State};
handle_info({tcp_error, _Sock, Reason}, State) ->
do_trace("Error on connection to ~1000.p:~1000.p -> ~1000.p~n",
Please sign in to comment.
Something went wrong with that request. Please try again.