Permalink
Browse files

Stopped tcp_closed errors from cuasing crashes and removed dialyzer f…

…rom default make target
  • Loading branch information...
srstrong committed Jan 7, 2014
1 parent d824491 commit 6754798b2e271c6a09cac16b487a6b1969882620
Showing with 3 additions and 3 deletions.
  1. +1 −1 Makefile
  2. +2 −2 src/ibrowse_http_client.erl
View
@@ -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
@@ -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",

0 comments on commit 6754798

Please sign in to comment.