[erlang-patches] Patch to http_load_uri in inet_drv.c

Oscar Hellström oscar@REDACTED
Fri Nov 21 14:07:59 CET 2008


Hi,

When using {packet, http} and decoding an absolute URI in an HTTP
request (i.e. GET http://erlang.org/ HTTP/1.1) the length of the path is
ignored and the length of the host name is used to c'opy the path. If
sending a host name longer than the path, the rest of the request line
will be included, and if we make the host name longer than path + HTTP
version, we will make the driver copy data from beond the received string.

Best regards
-- 
Oscar Hellström, oscar@REDACTED
Office: +44 20 7655 0337
Mobile: +44 798 45 44 773
Erlang Training and Consulting
http://www.erlang-consulting.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R12B-5-inet_drv.c-http_load_uri.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20081121/067c660d/attachment.bin>


More information about the erlang-patches mailing list