mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Fix http:request error.
Obtained from: Ingela Anderton Andin <ingela(at)erix.ericsson.se>
This commit is contained in:
parent
45d0aa38da
commit
2bf5249dbc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185256
@ -0,0 +1,23 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/inets/src/http_client/httpc_handler.erl.orig
|
||||
+++ lib/inets/src/http_client/httpc_handler.erl
|
||||
@@ -186,7 +186,7 @@
|
||||
case State#state.request of
|
||||
#request{} -> %% Old request no yet finished
|
||||
%% Make sure to use the new value of timers in state
|
||||
- Timers = NewState#state.timers,
|
||||
+ NewTimers = NewState#state.timers,
|
||||
NewPipeline = queue:in(Request, State#state.pipeline),
|
||||
NewSession =
|
||||
Session#tcp_session{pipeline_length =
|
||||
@@ -196,7 +196,7 @@
|
||||
httpc_manager:insert_session(NewSession),
|
||||
{reply, ok, State#state{pipeline = NewPipeline,
|
||||
session = NewSession,
|
||||
- timers = Timers}};
|
||||
+ timers = NewTimers}};
|
||||
undefined ->
|
||||
%% Note: tcp-message reciving has already been
|
||||
%% activated by handle_pipeline/2. Also
|
@ -0,0 +1,23 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/inets/src/http_client/httpc_handler.erl.orig
|
||||
+++ lib/inets/src/http_client/httpc_handler.erl
|
||||
@@ -186,7 +186,7 @@
|
||||
case State#state.request of
|
||||
#request{} -> %% Old request no yet finished
|
||||
%% Make sure to use the new value of timers in state
|
||||
- Timers = NewState#state.timers,
|
||||
+ NewTimers = NewState#state.timers,
|
||||
NewPipeline = queue:in(Request, State#state.pipeline),
|
||||
NewSession =
|
||||
Session#tcp_session{pipeline_length =
|
||||
@@ -196,7 +196,7 @@
|
||||
httpc_manager:insert_session(NewSession),
|
||||
{reply, ok, State#state{pipeline = NewPipeline,
|
||||
session = NewSession,
|
||||
- timers = Timers}};
|
||||
+ timers = NewTimers}};
|
||||
undefined ->
|
||||
%% Note: tcp-message reciving has already been
|
||||
%% activated by handle_pipeline/2. Also
|
Loading…
Reference in New Issue
Block a user