[SCM] Debian packaging of libnet-http-perl branch, master, updated. debian/6.03-2
Salvatore Bonaccorso
carnil at debian.org
Sat Jun 2 13:33:46 UTC 2012
The following commit has been merged in the master branch:
commit 1d3ad4c288797b59aaa2b80ef6abbcaf10a1330f
Author: Salvatore Bonaccorso <carnil at debian.org>
Date: Sat Jun 2 15:23:32 2012 +0200
Add fix_chunked_decoding_674788.diff patch
Fix a problem with chunked decoding.
Thanks: Modestas Vainius <modax at debian.org> for the patch
Closes: #674788
Git-Dch: Ignore
diff --git a/debian/changelog b/debian/changelog
index cdba788..7c244ad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libnet-http-perl (6.03-2) UNRELEASED; urgency=low
+
+ [ Modestas Vainius ]
+ * Add fix_chunked_decoding_674788.diff patch to fix a problem with chunked
+ decoding. (Closes: #674788)
+
+ -- Modestas Vainius <modax at debian.org> Sat, 02 Jun 2012 13:43:48 +0300
+
libnet-http-perl (6.03-1) unstable; urgency=low
* Imported Upstream version 6.03.
diff --git a/debian/patches/fix_chunked_decoding_674788.diff b/debian/patches/fix_chunked_decoding_674788.diff
new file mode 100644
index 0000000..6f07e6e
--- /dev/null
+++ b/debian/patches/fix_chunked_decoding_674788.diff
@@ -0,0 +1,31 @@
+Description: Fix a problem with chunked decoding
+ If the first read after a chunk header returns EAGAIN or EINTR, the
+ chunked state stored in the client object doesn't get updated, so the
+ next call to ->read_entity_body tries to read the chunk header again,
+ and gives a "Missing newline after chunk data" error.
+ .
+ This fixes it by updating ${*$self}{'http_chunked'} immediately after
+ the chunk header has been read, so that the state persist to the next
+ call.
+Origin: other, https://rt.cpan.org/Public/Bug/Display.html?id=74431#txn-1076013
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=74431
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674788
+Forwarded: yes
+From: Dagfinn Ilmari Mannsåker <ilmari at ilmari.org>
+Last-Update: 2012-06-02
+
+---
+ lib/Net/HTTP/Methods.pm | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+--- a/lib/Net/HTTP/Methods.pm
++++ b/lib/Net/HTTP/Methods.pm
+@@ -488,7 +488,7 @@
+ unless ($chunk_len =~ /^([\da-fA-F]+)\s*$/) {
+ die "Bad chunk-size in HTTP response: $line";
+ }
+- $chunked = hex($1);
++ ${*$self}{'http_chunked'} = $chunked = hex($1);
+ if ($chunked == 0) {
+ ${*$self}{'http_trailers'} = [$self->_read_header_lines];
+ $$buf_ref = "";
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f7b1ffa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_chunked_decoding_674788.diff
--
Debian packaging of libnet-http-perl
More information about the Pkg-perl-cvs-commits
mailing list