From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51499 Path: main.gmane.org!not-for-mail From: Andreas Fuchs Newsgroups: gmane.emacs.gnus.general Subject: Re: How many people mark spam in gmane groups? Date: Tue, 15 Apr 2003 21:42:07 +0000 (UTC) Sender: ding-owner@lists.math.uh.edu Message-ID: <87smsj8mjq.fsf@eris.void.at> References: <4n4r5aowwm.fsf@chubby.bwh.harvard.edu> <87llyfsoi6.fsf@eris.void.at> <877k9y1x96.fsf@eris.void.at> <4nvfxgri1d.fsf@lockgroove.bwh.harvard.edu> <8765pgjpc9.fsf@doohan.bang.priv.no> <4nvfxfa746.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050443821 23718 80.91.224.249 (15 Apr 2003 21:57:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 21:57:01 +0000 (UTC) Original-X-From: ding-owner+M43@lists.math.uh.edu Tue Apr 15 23:56:58 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195YQE-0006A7-00 for ; Tue, 15 Apr 2003 23:56:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 195YQm-0003MH-00; Tue, 15 Apr 2003 16:57:32 -0500 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=root) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 195YEu-00037K-00 for ding@lists.math.uh.edu; Tue, 15 Apr 2003 16:45:19 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA25998 for ; Tue, 15 Apr 2003 16:46:23 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 195YD9-00059b-00 for ; Tue, 15 Apr 2003 23:43:27 +0200 Mail-Followup-To: ding@hpc.uh.edu X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@hpc.uh.edu Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 195YBr-00053g-00 for ; Tue, 15 Apr 2003 23:42:07 +0200 Original-Lines: 33 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never X-Url: http://asf.void.at/ X-Attribution: asf X-Face: 3*3w/y?I6|`'CYW7F~m0]U1)L\|[x"?/V6^;s3FU#q|F'AL(3C?$eslHvAmR:KjT"&LZeqM 0wMS%HM` Cancel-Lock: sha1:xrA3q8GZurYJZyXNoiIFNpggDL8= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51499 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51499 Today, Ted Zlatanov wrote: > (progn > (with-temp-buffer > (let ((host "spam.gmane.org")) > (or (setq tcp-connection > (open-network-stream > "URL ping" > (buffer-name) > host > 80)) > (error "Could not open connection to %s" host)) > (set-marker (process-mark tcp-connection) (point-min)) > (set-process-filter tcp-connection > 'net-utils-remove-ctrl-m-filter) (process-send-string > tcp-connection > (format "GET /gmane.emacs.help:8479 > HTTP/1.1\nHost: spam.gmane.org\n\n"))))) > It seems correct to me. Since the temp-buffer gets killed, that will > kill the network connection as well, right? The important question is, will this work if the network connection gets killed before gmane handles the request? This was what made me use (asynchronous) url-retrieve, which works pretty much like your solution above, only (seemingly) more asynchronously. (-: Maybe somebody with knowledge of php can tell us how this kind of error gets handled or if it is an error at all? -- Andreas Fuchs, , asf@jabber.at, antifuchs irc.freenode.net's #emacs - online emacs advice from IRC addicts