From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Gnus encrypted connections hang (was: Several problems) Date: Thu, 31 Jul 2014 19:23:58 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877g2tglip.fsf_-_@lifelogs.com> References: <87vbqeobsg.fsf@lifelogs.com> <53D9C470.80703@yandex.ru> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406849071 4938 80.91.229.3 (31 Jul 2014 23:24:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2014 23:24:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 01 01:24:26 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XCzhx-0002e8-Ts for ged-emacs-devel@m.gmane.org; Fri, 01 Aug 2014 01:24:26 +0200 Original-Received: from localhost ([::1]:58900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCzhx-0002mp-HI for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2014 19:24:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCzhq-0002mj-0a for emacs-devel@gnu.org; Thu, 31 Jul 2014 19:24:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCzhl-0003Qw-3f for emacs-devel@gnu.org; Thu, 31 Jul 2014 19:24:17 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCzhk-0003QD-TM for emacs-devel@gnu.org; Thu, 31 Jul 2014 19:24:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XCzhi-0002Oj-Rr for emacs-devel@gnu.org; Fri, 01 Aug 2014 01:24:10 +0200 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Aug 2014 01:24:10 +0200 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Aug 2014 01:24:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:5AWjeq7nRK+ywP8HowJ6sY1LBpI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:173338 Archived-At: On Thu, 31 Jul 2014 08:22:08 +0400 Dmitry Antipov wrote: DA> On 07/31/2014 12:02 AM, Ted Zlatanov wrote: >> The symptom seems to be that GnuTLS will read data, then gets a retry, >> and finally hangs forever. I can duplicate it by trying to read the last >> 200 messages in emacs-devel and I believe even as little as 16K will >> trigger the behavior. But if I read the last 1 message only (`C-u 1 >> RET') then things work. If this is indeed a timer problem, it will be >> hard to replicate but I hope this is enough data. DA> Is it possible to create a simple recipe? I'm not familiar enough with Gnus, and DA> would like to see something like in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16603#5. >> If you prefer a bug report, let me know. DA> Yes, please. Hmm, I'd like some help here. I can't replicate the problem easily. Using Lars' recipe from that bug report, I did: #+begin_src emacs-lisp (require 'gnus-group) (setq gnutls-verbose 9) (let ((gnus-bug-group-download-format-alist '((emacs . "https://code.jquery.com/jquery-2.1.1.js")))) (gnus-read-ephemeral-emacs-bug-group 16577)) #+end_src which locks up for me reliably the *first* time it's run, in a way similar to what I reported earlier, but there's no output in *Messages*. It's hitting a static URL with some parameters and transferring a few KB of data. OTOH here's a recipe that doesn't lock up, but transfers a fairly large file quickly. Because it doesn't lock up, I believe the issue is somehow tied to interaction with the process. #+begin_src emacs-lisp (let ((p (open-gnutls-stream "tls" "tls" "code.jquery.com" "443"))) (with-current-buffer "tls" (process-send-string p "GET /jquery-2.1.1.js\n"))) #+end_src Ideally I'd like to provide you an exact recipe to replicate what Gnus does but it's fairly complicated. Lars would be better at figuring this out. Perhaps the first recipe above is enough. If you or others have ideas, please let me know. I'll open the bug as soon as I have a recipe. I also asked about the reason for introducing this change recently, and if it can be made configurable and optional, at least. Right now it makes Gnus and perhaps other parts of Emacs unusable. Please point me to the discussion, if any, about this change so I can learn. If there was no previous discussion, could you explain a bit? Thanks Ted