GNU bug report logs - #16345
24.3; url-http sometimes closes connection prematurely

Previous Next

Package: emacs;

Reported by: James Stout <james.wolf.stout <at> gmail.com>

Date: Sat, 4 Jan 2014 23:43:01 UTC

Severity: normal

Tags: fixed

Found in version 24.3

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 16345 <at> debbugs.gnu.org (full text, mbox):

From: James Stout <james.wolf.stout <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 16345 <at> debbugs.gnu.org
Subject: Re: bug#16345: 24.3; url-http sometimes closes connection prematurely
Date: Sun, 5 Jan 2014 11:59:38 -0800
[Message part 1 (text/plain, inline)]
Hi Glenn,

Yep, that fix works for me, thanks! Next time I'll be sure to check
resolved bugs (I only checked open ones) and the source code trunk.

I did notice that only one instance of the regular expression was changed.
I'm not using chunked encoding with trailers, so it's hard for me to verify
whether this indeed is a bug, but I think this line also needs to be fixed:
http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/url/url-http.el#L1037

Best,
James


On Sat, Jan 4, 2014 at 3:46 PM, Glenn Morris <rgm <at> gnu.org> wrote:

> James Stout wrote:
>
> > fix. The core problem is that the http library uses an incorrect regular
> > expression when determining when the response headers are complete. It's
> > looking for an empty line, and it uses "^\r*$", but it should use
> "^\r?\n".
>
> Thanks, it already does so in Emacs trunk:
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13598#28
>
> Perhaps you could check that trunk works correctly for you.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.