Skip to content

Commit

Permalink
Stopped tcp_closed errors from cuasing crashes and removed dialyzer f…
Browse files Browse the repository at this point in the history
…rom default make target
  • Loading branch information
srstrong committed Jan 7, 2014
1 parent d824491 commit 6754798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/ibrowse_http_client.erl
Expand Up @@ -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",
Expand Down

0 comments on commit 6754798

Please sign in to comment.