From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62979 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.gnus.general Subject: nnweb vs. mm-url Date: Sat, 22 Apr 2006 13:13:11 +0200 Message-ID: <873bg5zwvs.fsf@gate450.dyndns.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1145704448 2419 80.91.229.2 (22 Apr 2006 11:14:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Apr 2006 11:14:08 +0000 (UTC) Original-X-From: ding-owner+m11506@lists.math.uh.edu Sat Apr 22 13:14:04 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FXG3v-0001en-FY for ding-account@gmane.org; Sat, 22 Apr 2006 13:14:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FXG3p-0006cE-00; Sat, 22 Apr 2006 06:13:57 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FXG3E-0006c6-00 for ding@lists.math.uh.edu; Sat, 22 Apr 2006 06:13:20 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FXG3B-0004LM-3m for ding@lists.math.uh.edu; Sat, 22 Apr 2006 06:13:20 -0500 Original-Received: from smtp1.rz.uni-karlsruhe.de ([129.13.185.217]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FXG3B-0000fc-00 for ; Sat, 22 Apr 2006 13:13:17 +0200 Original-Received: from rzstud1.stud.uni-karlsruhe.de (rzstud1.stud.uni-karlsruhe.de [193.196.41.33]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.50 #1) id 1FXG37-000265-3D; Sat, 22 Apr 2006 13:13:15 +0200 Original-Received: from uwi7 by rzstud1.stud.uni-karlsruhe.de with local (Exim 3.36 #1) id 1FXG3D-0002GK-00 for ding@gnus.org; Sat, 22 Apr 2006 13:13:19 +0200 Original-To: ding@gnus.org X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-,PnG. Et.Yh --=-=-= Hi, does anyone know why mm-url is explicitly setting a "Connection" header on all requests? The ChangeLog doesn't contain any hints why it was added. It seems to confuse url-http.el of Emacs 22, since it ships two "Connection" headers with contradicting values: --8<---------------cut here---------------start------------->8--- tcpdump -i eth0 -X -s 0 port\ http [...] 12:47:53.034094 IP tp.42794 > 64.233.167.147.www: P 833:1707(874) ack 906 win 7232 [...] 0x00b0: 7273 696f 6e3a 2031 2e30 0d0a 436f 6e6e rsion:.1.0..Conn 0x00c0: 6563 7469 6f6e 3a20 6b65 6570 2d61 6c69 ection:.keep-ali 0x00d0: 7665 0d0a 4578 7465 6e73 696f 6e3a 2053 ve..Extension:.S [...] 0x0370: 782d 676e 753b 2058 3131 290d 0a43 6f6e x-gnu;.X11)..Con 0x0380: 6e65 6374 696f 6e3a 2043 6c6f 7365 0d0a nection:.Close.. 0x0390: 0d0a .. --8<---------------cut here---------------end--------------->8--- Applying the following patch makes nnweb.el fully functional for me on Emacs 22 with mm-url-use-external set to nil. Without it, referring articles using internal fetching appears to be break when url-http tries to recycle the connection when following redirects. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=mm-url.patch Index: mm-url.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mm-url.el,v retrieving revision 7.13 diff -c -r7.13 mm-url.el *** mm-url.el 20 Jan 2006 08:35:06 -0000 7.13 --- mm-url.el 22 Apr 2006 10:05:07 -0000 *************** *** 299,305 **** (list url (buffer-size))) (mm-url-load-url) (let ((name buffer-file-name) - (url-request-extra-headers (list (cons "Connection" "Close"))) (url-package-name (or mm-url-package-name url-package-name)) (url-package-version (or mm-url-package-version --- 299,304 ---- --=-=-= regards, andreas --=-=-=--