This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(debug_relx). | |
-export([go/0, go/1]). | |
go() -> | |
go("."). | |
go(Dir) -> | |
Fun = fun collect_app_file/2, | |
{_, Files} = filelib:fold_files(Dir, ".*.app.src", true, Fun, {[], []}), | |
Graph = digraph:new(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(tcp_server). | |
-behaviour(gen_server). | |
%% API | |
-export([start_link/0]). | |
%% gen_server callbacks | |
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, | |
terminate/2, code_change/3]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ibrowse.erl b/src/ibrowse.erl | |
index d219212..996a303 100644 | |
--- a/src/ibrowse.erl | |
+++ b/src/ibrowse.erl | |
@@ -425,6 +425,8 @@ do_send_req(Conn_Pid, Parsed_url, Headers, Method, Body, Options, Timeout) -> | |
{error, req_timedout}; | |
{'EXIT', {noproc, {gen_server, call, [Conn_Pid, _, _]}}} -> | |
{error, sel_conn_closed}; | |
+ {'EXIT', {normal, _}} -> | |
+ {error, req_timedout}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ibrowse_http_client.erl b/src/ibrowse_http_client.erl | |
index 4fdb334..19a7b47 100644 | |
--- a/src/ibrowse_http_client.erl | |
+++ b/src/ibrowse_http_client.erl | |
@@ -38,12 +38,15 @@ | |
-include("ibrowse.hrl"). | |
--record(state, {host, port, | |
+-record(state, {host, port, connect_timeout, |