From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#14380: 24.3; `network-stream-open-tls' fails in some imap servers on w32 Date: Sun, 19 May 2013 18:57:43 +0100 Message-ID: References: <87k3mw79iv.fsf@lifelogs.com> <87zjvr64lt.fsf_-_@lifelogs.com> <83ppwnvut9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368986328 8706 80.91.229.3 (19 May 2013 17:58:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 May 2013 17:58:48 +0000 (UTC) Cc: 14380@debbugs.gnu.org, tzz@lifelogs.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 19 19:58:47 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Ue7sc-0000No-JT for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2013 19:58:46 +0200 Original-Received: from localhost ([::1]:59029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue7sc-0001EQ-6G for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2013 13:58:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue7sV-0001EI-4G for bug-gnu-emacs@gnu.org; Sun, 19 May 2013 13:58:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ue7sQ-0003xJ-FF for bug-gnu-emacs@gnu.org; Sun, 19 May 2013 13:58:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue7sQ-0003xD-Ba for bug-gnu-emacs@gnu.org; Sun, 19 May 2013 13:58:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ue7sr-0003HS-IY; Sun, 19 May 2013 13:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 19 May 2013 17:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14380 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 14380-submit@debbugs.gnu.org id=B14380.136898632312576 (code B ref 14380); Sun, 19 May 2013 17:59:01 +0000 Original-Received: (at 14380) by debbugs.gnu.org; 19 May 2013 17:58:43 +0000 Original-Received: from localhost ([127.0.0.1]:51679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ue7sW-0003Gg-92 for submit@debbugs.gnu.org; Sun, 19 May 2013 13:58:42 -0400 Original-Received: from mail-pd0-f176.google.com ([209.85.192.176]:54761) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ue7sT-0003GL-M9 for 14380@debbugs.gnu.org; Sun, 19 May 2013 13:58:38 -0400 Original-Received: by mail-pd0-f176.google.com with SMTP id r11so1428948pdi.21 for <14380@debbugs.gnu.org>; Sun, 19 May 2013 10:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=s703Ivsnk/y0XF3T54D6XL98hgTS6JWhP4IoDFJ78vc=; b=z/+vu4Q7oKQSEaXFhJAWU+Pz52NZn993mj8DNYJQ3P56mynTGamLR/6SO9VGd8Jmjm 9FOV0mTS4JrDOt+ZIFLL0w42bWjJG0gG1b+sQ8qxhlxD63FXW1DDhksE9tjiRKtWd/qa 3fktkZSbHno13WUVELvTIIv9kKkda7pjok0leWUj4reCPTQjLyWJ9ZtHT2R+2dtVZ4ih uN6VS9mHU7kfjXLCrc0oM/YWN6JmTRlYBR733CGP/0kc9T36Fk9B/U57VCAum3C70840 z4mpu8cqcF5MJ8/qnch9tXsU5sEvPHlYIc5hbPceXsCiYrG41rDTBFMldUn+UosAtrhw LQww== X-Received: by 10.66.248.228 with SMTP id yp4mr57348513pac.158.1368986283331; Sun, 19 May 2013 10:58:03 -0700 (PDT) Original-Received: by 10.68.219.137 with HTTP; Sun, 19 May 2013 10:57:43 -0700 (PDT) In-Reply-To: <83ppwnvut9.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74407 Archived-At: On Sun, May 19, 2013 at 4:44 PM, Eli Zaretskii wrote: >> From: Jo=E3o T=E1vora >> Date: Sun, 19 May 2013 12:45:12 +0100 >> Cc: Eli Zaretskii , 14380@debbugs.gnu.org, emacs-devel@gnu= .org >> >> The fix I proposed aims for the status quo, that is: make external >> TLS binary support slightly more robust. > > I already said at lest twice in this thread: THIS WON'T WORK on > Windows (except in Cygwin Emacs). The communications between the Look, there's no need to shout. I'm not using Cygwin emacs, I'm using regular W32 binaries and am not even sure what tls binary emacs found or how. It appears to be: "openssl s_client -connect imaps.mycompany.com:993 -no_ssl2 -ign_eof" My analysis of the code of `network-stream-open-tls' revealed (as do the comments) that it tries to cleanup the process buffer of previous garbage left there = by `open-tls-stream` (who nonetheless tries to place point correctly in the process buffer) I'm **guessing** "openssl" is a cygwin binary, I didn't even check that. I **reported** a bug since I considered unexpected behaviour occurred even = with the cleanest of "emacs -Q" run. I **suggested** a fix because of two reasons: (1) I tried it and it worked and has been working since (2) in the context of the interaction between the two functions `network-stream-open-tls' and `open-tls-stream' it seemed reasonable that the latter cleans up after itself. Maybe, in my reduced usage of gnus, I haven't gotten to a situation where things would break because of signal handling or whatever. Lucky me. When things do break, I'll happily unzip dlls, I have nothing against that. Thanks for all the info, feel free to close the bug if you haven't already Over and out, Jo=E3o