aboutsummaryrefslogtreecommitdiffstats
path: root/net/erlang-xmlrpc/files/patch-src_xmlrpc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'net/erlang-xmlrpc/files/patch-src_xmlrpc.erl')
-rw-r--r--net/erlang-xmlrpc/files/patch-src_xmlrpc.erl18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/erlang-xmlrpc/files/patch-src_xmlrpc.erl b/net/erlang-xmlrpc/files/patch-src_xmlrpc.erl
new file mode 100644
index 00000000000..6e2ee005302
--- /dev/null
+++ b/net/erlang-xmlrpc/files/patch-src_xmlrpc.erl
@@ -0,0 +1,18 @@
+--- src/xmlrpc.erl.orig 2003-04-23 19:06:45 UTC
++++ src/xmlrpc.erl
+@@ -164,7 +164,14 @@ handle_payload(Socket, KeepAlive, Timeou
+
+ get_payload(Socket, Timeout, ContentLength) ->
+ inet:setopts(Socket, [{packet, raw}]),
+- gen_tcp:recv(Socket, ContentLength, Timeout).
++ get_payload(Socket, Timeout, ContentLength, []).
++
++get_payload(Socket, Timeout, 0, Payload) ->
++ {ok, lists:concat(lists:reverse(Payload))};
++
++get_payload(Socket, Timeout, ContentLength, Payload) ->
++ {ok, Bin} = gen_tcp:recv(Socket, 0, Timeout),
++ get_payload(Socket, Timeout, ContentLength - length(Bin), [Bin|Payload]).
+
+ %% Exported: start_link/{1,5,6}
+