From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 10:47:44 2019 Received: (at submit) by debbugs.gnu.org; 27 May 2019 14:47:44 +0000 Received: from localhost ([127.0.0.1]:53761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVGue-00080a-D4 for submit@debbugs.gnu.org; Mon, 27 May 2019 10:47:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVGuc-00080B-Gk for submit@debbugs.gnu.org; Mon, 27 May 2019 10:47:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:37447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVGuW-0003Uf-IC for submit@debbugs.gnu.org; Mon, 27 May 2019 10:47:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVGuV-0000sC-Ee for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 10:47:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVGuN-0003Rj-Tw for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 10:47:30 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:49949) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVGuM-0003QZ-Ux for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 10:47:27 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 862F0577 for ; Mon, 27 May 2019 10:47:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 27 May 2019 10:47:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xuchunyang.me; h=from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=WINjgKE0VTv5fGjKOtunvOlA/1dfA/YiLkG9qbKYZHg=; b=lHdpDt04 CggM27QurqIWZlI4WwQuLWQWxuymPl3u9C5kGP1mWugPNkeA580vj79CgdelghT8 K6oBimBHZaoi+IvNNuxb10OvXhubV2icZAp7U0As6WtUGBp1QwTJwdtYi6npGFvf q8aaeub4cjN+f2lxIYCk9JM4/5PXMR2gy44WS2vCi8eF9C7dDKlpdKs2pWViIUEV vEbdgpCJHDWEmRpxgyQI0qIAxU/MZKD38si1alt89RYXDh+KNeb160ftP62v4vqo DHOAxltdkdJH7TrJEn6yMPMlO4Xs51K88bTVTbA7KiW9/O0gidBWFUE9CaFNipsJ yyoXgeFxlk7svQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=WINjgKE0VTv5fGjKOtunvOlA/1dfA /YiLkG9qbKYZHg=; b=6iZ7vu3jfN8NPcj0u9eJCzGFiaNSSmiR9r4z7QgBz/Qt9 ihWvFYaub9JF2hf0g8t5ex91936D1fA0MO2JW/8q5gyP61OH+kjuiLyANzr8+5GH IC/5Tyl5yTUbVHJhGskboc0GUE1xzhlxd0euAaFPjvB0CRcMVT8RpPmbiQZmmmEw uPyOuJcdYXT2ap0jqCFlPyNYHGxI+E8F5wex3KciSufnhUwIZyzqh2zxOTtupg8Q duoNZX1lunNWW/MhUPyK7koFPjjc3Ss4est/xfpd3XAyNIRPKCK6rQ4RsmwxbfNY TIQgk4IugsiG5qHcJchAQzdurUG/svdFv04Nb8H4Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddvvddgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgesthdtredttd ertdenucfhrhhomhepighuucevhhhunhihrghnghcuoehmrghilhesgihutghhuhhnhigr nhhgrdhmvgeqnecuffhomhgrihhnpegvgigrmhhplhgvrdgtohhmpdhhthhtphgvgigrmh hplhgvrdgtohhmnecukfhppeduudejrdelfedrvddttddrvdeinecurfgrrhgrmhepmhgr ihhlfhhrohhmpehmrghilhesgihutghhuhhnhigrnhhgrdhmvgenucevlhhushhtvghruf hiiigvpedt X-ME-Proxy: Received: from Chunyangs-MacBook-Air.local (unknown [117.93.200.26]) by mail.messagingengine.com (Postfix) with ESMTPA id 7831F380086 for ; Mon, 27 May 2019 10:47:19 -0400 (EDT) From: Xu Chunyang To: bug-gnu-emacs@gnu.org Subject: 26.2; url-http-end-of-headers sets to 1 when cache is working User-Agent: Emacs/26.2 Date: Mon, 27 May 2019 22:47:15 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.147.123.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Today I enable URL cache via (setq url-automatic-caching t url-cache-expire-time (* 6 3600)) and I notice url-http-end-of-headers isn't the end of the headers when cache is working. This breaks some of my code, I assume it is the end of the header so I use (goto-char url-http-end-of-headers) before parsing the response body. Is this expected or a bug? (with-current-buffer (url-retrieve-synchronously "http://example.com") (message "=> %S" url-http-end-of-headers)) "=> #" (with-current-buffer (url-retrieve-synchronously "http://example.com") (message "=> %S" url-http-end-of-headers)) "=> #" (with-current-buffer (url-retrieve-synchronously "http://example.com") (message "=> %S" url-http-end-of-headers)) "=> #" From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 11:22:02 2019 Received: (at 35927) by debbugs.gnu.org; 27 May 2019 15:22:02 +0000 Received: from localhost ([127.0.0.1]:53801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVHRn-0000dw-Qs for submit@debbugs.gnu.org; Mon, 27 May 2019 11:22:00 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:52162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVHRl-0000dh-QX for 35927@debbugs.gnu.org; Mon, 27 May 2019 11:21:58 -0400 Received: by mail-wm1-f48.google.com with SMTP id f10so9024211wmb.1 for <35927@debbugs.gnu.org>; Mon, 27 May 2019 08:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=is5OMSHj/QKxbJ4GqWWQkV6AMulugbU6/XDCagM3Pyw=; b=yEm//E60KdFSzhlqpNEVHX/Ae+PAX0S/VJXw0+NuirDBI61HYoRi4l6ditCHWPi/oC GU7Ecvr12bz7GMEie98s3mhqVmEcT0RIcycBpd/Gw1X4USNCiOe4iQGTjIQX2/PwPfML 30vPyNprWyzoXGUh4tu+OWq27PFVxneoCiGTFj5R9XFmzMgxvVd5Wf2VTUfqg9bL4AsJ 38F2UAimiME88LHbBrOz362DaoZVlAiXem9T8zbJQ5GGWSwTIN4dt7pZouaCnF4ZDCe0 cyPBhE/CdNQvvMeZ+VqDzsIymo1Ei1c6HddLpoVLr0R7uPKyy9hSx375uhHQr4AhLmnL 9xaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=is5OMSHj/QKxbJ4GqWWQkV6AMulugbU6/XDCagM3Pyw=; b=rW0HXQXCIoyErIgoCQvVny7yI7l6XzItm40FXcyAurZZx+J5AXp2HnJPwbLrZAXkB8 BwjCtgdUEuxEb+Gkq8Hg1kg9wxIJcCh0roE7/t/isLJ6nTLFGOlBTvG6Zh81dnilQFyG S0bexQ1EGfWddwlLyc6QxVa6NbSSXCK/qa1UJXM+1ibcBjTytokThHOiZ37ZNzeZwFGF wCHtul+P+fBFWYfqg/2ixIlnFdSObyTgVFHLYL3BGQlO3au54m4vSC+cD7FC6zmGdlrc CMaMYvtiI74j4bQqdrDeFtismIHg8gZI1vqtdjHJ1vK3aLXf2WPoTiGIoAh3vANLa0qk CGXg== X-Gm-Message-State: APjAAAVpHAkpMFTd0XfTMdECVq0yPyVurkemQ1nxp8d7joTyKxYKC9cu gyDum3692puUJFgLa6UhAGNUgljP0JWLcw== X-Google-Smtp-Source: APXvYqyBpPM4o5PMboHfkG1NBUCcUgORH7gVN9s6WBelWEjZN+nrx2XnLNaoDkRCOEIQV08OOIjLrw== X-Received: by 2002:a1c:2dc2:: with SMTP id t185mr10397372wmt.52.1558970511715; Mon, 27 May 2019 08:21:51 -0700 (PDT) Received: from localhost ([163.172.211.46]) by smtp.gmail.com with ESMTPSA id w2sm4911556wru.16.2019.05.27.08.21.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 27 May 2019 08:21:50 -0700 (PDT) From: "Basil L. Contovounesios" To: Xu Chunyang Subject: Re: bug#35927: 26.2; url-http-end-of-headers sets to 1 when cache is working References: Date: Mon, 27 May 2019 16:21:48 +0100 In-Reply-To: (Xu Chunyang's message of "Mon, 27 May 2019 22:47:15 +0800") Message-ID: <87ef4jrkhf.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35927 Cc: 35927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Xu Chunyang writes: > Today I enable URL cache via > > (setq url-automatic-caching t > url-cache-expire-time (* 6 3600)) > > and I notice url-http-end-of-headers isn't the end of the headers when > cache is working. This breaks some of my code, I assume it is the end of > the header so I use (goto-char url-http-end-of-headers) before parsing > the response body. Is this expected or a bug? > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > (message "=> %S" url-http-end-of-headers)) > "=> #" > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > (message "=> %S" url-http-end-of-headers)) > "=> #" > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > (message "=> %S" url-http-end-of-headers)) > "=> #" I can't seem to reproduce this on emacs-26 or master: 0. HOME=$(mktemp -d) emacs -Q 1. (let ((get (lambda () (with-current-buffer (url-retrieve-synchronously "https://gnu.org") (message "%s" url-http-end-of-headers))))) (dotimes (_ 3) (funcall get)) (setq url-automatic-caching t url-cache-expire-time (* 6 3600)) (dotimes (_ 3) (funcall get))) 2. C-x C-e Contacting host: gnu.org:443 # Contacting host: gnu.org:443 # # Contacting host: gnu.org:443 # # # What am I doing wrong? -- Basil In GNU Emacs 26.2.50 (build 8, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-05-27 built on thunk Repository revision: c4d4dcf17e407a3c68e150f22b9756ef6c943070 Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -ggdb -gdwarf-4' --config-cache --prefix=/home/blc/.local --program-suffix=26 --enable-checking=yes,glyphs --enable-check-lisp-object-type --with-mailutils --with-x-toolkit=lucid --with-modules --with-file-notification=yes --with-x' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_IE.UTF-8 locale-coding-system: utf-8-unix In GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-05-25 built on thunk Repository revision: ec4b2c888ad12c255accf1bccdac12f173c96047 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache --prefix=/home/blc/.local --with-mailutils --with-x-toolkit=lucid --with-modules --with-file-notification=yes --with-x' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 11:43:56 2019 Received: (at 35927) by debbugs.gnu.org; 27 May 2019 15:43:56 +0000 Received: from localhost ([127.0.0.1]:53824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVHn0-0001GQ-UP for submit@debbugs.gnu.org; Mon, 27 May 2019 11:43:55 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:56915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVHmz-0001G1-8C for 35927@debbugs.gnu.org; Mon, 27 May 2019 11:43:54 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A742822281; Mon, 27 May 2019 11:43:47 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute6.internal (MEProxy); Mon, 27 May 2019 11:43:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xuchunyang.me; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type; s=fm1; bh=Kl7KzFvHTR78nJW7O3OZ5i7qEiLt G0Pz1hskKrqm/mA=; b=QRq00f0cxqgZyALpS74ydprruOuQ3GD5FIWn7AqhAPZf g9eP4ZmXatIbYJV4sCurb3jzTMflbTurtimYfmVCV56XchXXR1jG72ApVMgRqokN dI/p5HENsdkWsQJ82uS3n6MHsQWEGzZTqYQjUkWjz9bLSNMEJVeoiTbyJbTxYIzd ROKWbwTPtUtbMXML0VTxI8oGxM4HV9xxWBJTlVVYDB40XiAyFU1fqpNQ8PcbkOzs s36Ln7MXdmJhrVRQ3RcQaE+DoTnqfwwg9ahyWQUseSL2KVEi87sehjTME9eBhxKR O+HNC9qJvEKJGi2kCiUDihB+nGi0aT36afadDLt5CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Kl7KzF vHTR78nJW7O3OZ5i7qEiLtG0Pz1hskKrqm/mA=; b=ntdZbp4+RGAuJyFQuThQQm 0BpsmXoSxlw05cqJc0U2OLuHsBp2Fhslt7VpW10i02nRbI1hOFZhcaVRv0Fk7a+N GdxTBQSfGM1IWS471uUEHtK9BhfRqUpexN4Faw6aPqZDtsBnFtZwNwqwXEWPDRpZ 6XQSFWIwf0ppNsBJ9HH0Y0iudHCQ4AHGZZbyLb+OIXjOt4am+wBDCLJlsODLE71C Mr7n93Z6DUDGn2WQyeQPDi1AfEivdx3t8oDr2IiJYI/nWLMnUM5C0zFgB2pcEZm7 aFeAOSDACMnTU3zq37xyevW93fop5njtul3HnLMy2Rf8By6D7q0zAOCUaHaEOKeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddvvddgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepgihutghh uhhnhigrnhhguceomhgrihhlseiguhgthhhunhihrghnghdrmhgvqeenucffohhmrghinh epvgigrghmphhlvgdrtghomhdpghhnuhdrohhrghdphhhtthhpvgigrghmphhlvgdrtgho mhenucfrrghrrghmpehmrghilhhfrhhomhepmhgrihhlseiguhgthhhunhihrghnghdrmh gvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 39809520093; Mon, 27 May 2019 11:43:47 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-553-gc304556-fmstable-20190524v1 Mime-Version: 1.0 Message-Id: <194cdf58-0f3b-4f43-9c87-15cdb7101700@www.fastmail.com> In-Reply-To: <87ef4jrkhf.fsf@tcd.ie> References: <87ef4jrkhf.fsf@tcd.ie> Date: Mon, 27 May 2019 23:43:46 +0800 From: xuchunyang To: "Basil L. Contovounesios" Subject: =?UTF-8?Q?Re:_bug#35927:_26.2; _url-http-end-of-headers_sets_to_1_when_ca?= =?UTF-8?Q?che_is_working?= Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35927 Cc: 35927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Mon, May 27, 2019, at 11:21 PM, Basil L. Contovounesios wrote: > Xu Chunyang writes: > > > Today I enable URL cache via > > > > (setq url-automatic-caching t > > url-cache-expire-time (* 6 3600)) > > > > and I notice url-http-end-of-headers isn't the end of the headers when > > cache is working. This breaks some of my code, I assume it is the end of > > the header so I use (goto-char url-http-end-of-headers) before parsing > > the response body. Is this expected or a bug? > > > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > > (message "=> %S" url-http-end-of-headers)) > > "=> #" > > > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > > (message "=> %S" url-http-end-of-headers)) > > "=> #" > > > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > > (message "=> %S" url-http-end-of-headers)) > > "=> #" > > I can't seem to reproduce this on emacs-26 or master: > > 0. HOME=$(mktemp -d) emacs -Q > 1. (let ((get (lambda () > (with-current-buffer > (url-retrieve-synchronously "https://gnu.org") > (message "%s" url-http-end-of-headers))))) > (dotimes (_ 3) (funcall get)) > (setq url-automatic-caching t > url-cache-expire-time (* 6 3600)) > (dotimes (_ 3) (funcall get))) > 2. C-x C-e > > Contacting host: gnu.org:443 > # > Contacting host: gnu.org:443 > # > # > Contacting host: gnu.org:443 > # > # > # > > What am I doing wrong? Can you give http://example.com a try? It seems it's fine with https://gnu.org. > -- > Basil > > In GNU Emacs 26.2.50 (build 8, x86_64-pc-linux-gnu, X toolkit, Xaw3d > scroll bars) > of 2019-05-27 built on thunk > Repository revision: c4d4dcf17e407a3c68e150f22b9756ef6c943070 > Windowing system distributor 'The X.Org Foundation', version > 11.0.12003000 > System Description: Debian GNU/Linux 10 (buster) > > Configured using: > 'configure 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -ggdb -gdwarf-4' > --config-cache --prefix=/home/blc/.local --program-suffix=26 > --enable-checking=yes,glyphs --enable-check-lisp-object-type > --with-mailutils --with-x-toolkit=lucid --with-modules > --with-file-notification=yes --with-x' > > Configured features: > XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS > GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT > ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD > LCMS2 > > Important settings: > value of $LANG: en_IE.UTF-8 > locale-coding-system: utf-8-unix > > > In GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, X toolkit, Xaw3d > scroll bars) > of 2019-05-25 built on thunk > Repository revision: ec4b2c888ad12c255accf1bccdac12f173c96047 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version > 11.0.12003000 > System Description: Debian GNU/Linux 10 (buster) > > Configured using: > 'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache > --prefix=/home/blc/.local --with-mailutils --with-x-toolkit=lucid > --with-modules --with-file-notification=yes --with-x' > > Configured features: > XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY > INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB > TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON > PDUMPER LCMS2 GMP > From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 24 04:46:59 2019 Received: (at 35927) by debbugs.gnu.org; 24 Sep 2019 08:47:00 +0000 Received: from localhost ([127.0.0.1]:37653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCgTL-0006NZ-GQ for submit@debbugs.gnu.org; Tue, 24 Sep 2019 04:46:59 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCgTJ-0006LP-7c for 35927@debbugs.gnu.org; Tue, 24 Sep 2019 04:46:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCgTF-0003hc-LY; Tue, 24 Sep 2019 10:46:56 +0200 From: Lars Ingebrigtsen To: Xu Chunyang Subject: Re: bug#35927: 26.2; url-http-end-of-headers sets to 1 when cache is working References: Date: Tue, 24 Sep 2019 10:46:53 +0200 In-Reply-To: (Xu Chunyang's message of "Mon, 27 May 2019 22:47:15 +0800") Message-ID: <87zhiuytc2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Xu Chunyang writes: > and I notice url-http-end-of-headers isn't the end of the headers when > cache is working. This breaks some of my code, I assume it is the end of > the header so I use (goto-char url-http-end-of-hea [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35927 Cc: 35927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Xu Chunyang writes: > and I notice url-http-end-of-headers isn't the end of the headers when > cache is working. This breaks some of my code, I assume it is the end of > the header so I use (goto-char url-http-end-of-headers) before parsing > the response body. Is this expected or a bug? > > (with-current-buffer (url-retrieve-synchronously "http://example.com") > (message "=> %S" url-http-end-of-headers)) > "=> #" It's expected, I think. url-http-end-of-headers is an internal variable that url-http.el uses to keep track of things, and is not meant to be used by the callers. To find the end of the headers, you have to search for a blank line. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 24 04:47:08 2019 Received: (at control) by debbugs.gnu.org; 24 Sep 2019 08:47:08 +0000 Received: from localhost ([127.0.0.1]:37657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCgTT-0006Uw-T5 for submit@debbugs.gnu.org; Tue, 24 Sep 2019 04:47:08 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCgTR-0006St-R0 for control@debbugs.gnu.org; Tue, 24 Sep 2019 04:47:06 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCgTO-0003hk-5k for control@debbugs.gnu.org; Tue, 24 Sep 2019 10:47:05 +0200 Date: Tue, 24 Sep 2019 10:47:01 +0200 Message-Id: <87y2yeytbu.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35927 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 35927 notabug close 35927 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 35927 notabug close 35927 quit From unknown Fri Sep 05 09:10:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Oct 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator