From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Nebulous streaming/point bug Date: Thu, 13 Oct 2011 03:04:53 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318467918 30753 80.91.229.12 (13 Oct 2011 01:05:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2011 01:05:18 +0000 (UTC) Cc: Ted Zlatanov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 13 03:05:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE9jR-0008K0-Qn for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2011 03:05:09 +0200 Original-Received: from localhost ([::1]:38071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE9jR-0004FX-At for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 21:05:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE9jN-0004DV-Ii for emacs-devel@gnu.org; Wed, 12 Oct 2011 21:05:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE9jL-0006oa-Pl for emacs-devel@gnu.org; Wed, 12 Oct 2011 21:05:05 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:37177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE9jL-0006o2-Fo for emacs-devel@gnu.org; Wed, 12 Oct 2011 21:05:03 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1RE9jE-0001lt-7M; Thu, 13 Oct 2011 03:04:56 +0200 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 13 Oct 2011 02:34:32 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEWHABt7ARlNEh2JARxl LTd7ABiBV19xABdwABYPCAhiBBe7oaZuABWZAB5UChh2ABjdE0JwAAACPklEQVQ4jXXUzWsTQRQA 8PXiSQ8iiB6KUEtgDZZIEEGqB10CIXjyJp4kPCjDgqUnBf0fXErgtbCHIkKC3VMYKEPOkoI1IbpC 4KUlLcKGdkTQY8C3X2kSt4+wm8wvM/vem0kMXxJ1PhUv/CrSWfRekVEVNnVH+kTraVgjY/mnTVlh 6OOn2fDmw8NsKF7OHCcj+/sM54wnM5S0lfBt2xZzIJTil1JSzT/Dtn0AvsJ/S0m7BTBdagK8ilSq dV66kxmdYna630pgxTOkDeCTD8mkP0I1EwAOBRJEi1OXOX7kXEvuWhUZ1lSqpvA7uverS1UTN4Qs QQL121cW+HbRxNqqiRVplWIYoLv2jt9de2w6ook56SzF0Eb3s7dD9NECrOziFlTBiA5HgE5jtE50 HAI2a5xjPINhtHeVKAfSKSM4E9Dojr4yLAnpcFZlIVW8lBe4o8Y6jbetxUVEB/MKUkCtD2/qwOJx Bqy1YngUoKs1xmEyOAl0PdfFNMzwYsdAlxoezkQK1LsxC09SoPos3EqhMzuOd1I4wCD7Gf237enx jTOYXSmEeKcCR0/DVgp9dIOoF3PQO+CWhCUOE6jYxr0XY4YFE/WQmxEBd16QUdj/wlWcBugtYxuH ZgyKjPv1Uz4Mm/w5CEuxkLcQI3i+E56SpD4PMG+93A1hZYWXGrx3t9vX9/YbBcBaDSIoFPj3PDja 7L4m+vGAgIsTqyFE6X4/OqHwv6RDPm+rKE+gN/5Lh1EHGPIJpAf9WQolUXYU/QPkqg7G+3WIIQAA AABJRU5ErkJggg== X-Now-Playing: Mount Vernon Arts Lab's _The Seance at Hobs Lane_: "Percy Toplis" X-MailScanner-ID: 1RE9jE-0001lt-7M MailScanner-NULL-Check: 1319072696.47252@UvkWad9jioeM40CzMHcNCQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145089 Archived-At: Yup. Looks like the problem was where I thought it would be. Now, I obviously don't recommend the horror included below as a patch, but it seems to make it possible to read news with Gnus again under Emacs 24. But it should be fixed in a different way. :-) I'm not familiar enough with GnuTLS internals to say what the fix really should be, but I can test patches. === modified file 'src/process.c' --- src/process.c 2011-09-09 01:06:52 +0000 +++ src/process.c 2011-10-13 01:01:35 +0000 @@ -4612,6 +4612,23 @@ some data in the TCP buffers so that select works, but with custom pull/push functions we need to check if some data is available in the buffers manually. */ + if (nfds == 0) + { + for (channel = 0; channel < MAXDESC; ++channel) + { + if (! NILP (chan_process[channel])) + { + struct Lisp_Process *proc = XPROCESS (chan_process[channel]); + if (proc && proc->gnutls_p && + proc->infd && + emacs_gnutls_record_check_pending (proc->gnutls_state) > 0) + { + nfds++; + FD_SET (proc->infd, &Available); + } + } + } + } if (nfds == 0 && wait_proc && wait_proc->gnutls_p /* Check for valid process. */ /* Do we have pending data? */ -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/