From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22789: 25.1.50; In last master build https connections stop working Date: Sat, 27 Feb 2016 13:00:44 +1030 Message-ID: <878u26nauj.fsf@gnus.org> References: <864mcyo14y.fsf@Lenovo-PC.i-did-not-set--mail-host-address--so-tickle-me> <87d1rmxl65.fsf@gnus.org> <86povm6qeu.wl-j_l_domenech@yahoo.com> <83k2lugeym.fsf@gnu.org> <871t81wtyt.fsf@gnus.org> <87r3g1veqc.fsf@gnus.org> <83k2lsg2sx.fsf@gnu.org> <87k2lsnqzw.fsf@gnus.org> <83egbzertw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456540349 28812 80.91.229.3 (27 Feb 2016 02:32:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2016 02:32:29 +0000 (UTC) Cc: j_l_domenech@yahoo.com, 22789@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 03:32:13 2016 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 1aZUfz-0007eu-1M for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 03:32:11 +0100 Original-Received: from localhost ([::1]:53052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZUfy-0005s6-7l for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 21:32:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZUfu-0005qX-Cx for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 21:32:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZUfq-0003YF-9a for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 21:32:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZUfq-0003YB-5r for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 21:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZUfp-0006ly-V9 for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 21:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2016 02:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22789 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22789-submit@debbugs.gnu.org id=B22789.145654027625974 (code B ref 22789); Sat, 27 Feb 2016 02:32:01 +0000 Original-Received: (at 22789) by debbugs.gnu.org; 27 Feb 2016 02:31:16 +0000 Original-Received: from localhost ([127.0.0.1]:48057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZUf6-0006ks-FN for submit@debbugs.gnu.org; Fri, 26 Feb 2016 21:31:16 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:51063) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZUf4-0006kg-AG for 22789@debbugs.gnu.org; Fri, 26 Feb 2016 21:31:15 -0500 Original-Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZUef-0008Nx-Hi; Sat, 27 Feb 2016 03:30:50 +0100 In-Reply-To: <83egbzertw.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Feb 2016 11:36:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aZUef-0008Nx-Hi MailScanner-NULL-Check: 1457145050.46939@xUZFeCwUTCoyaYPPJASFXA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113923 Archived-At: Eli Zaretskii writes: >> So perhaps it's in the TLS code anyway. Could you try the following >> code? It'll make TLS negotiation blocking on WINDOWSNT again. > > Now, when I evaluate the same form you posted earlier, I get a lot of > binary garbage in *foo*, and (process-status proc) yields "failed". Hm... interesting... I think this might point towards emacs_gnutls_push/pull needing to be tweaked somehow. (In particular, the bytes from the stream do not seem to be delivered to the GnuTLS library, but instead consumed by Emacs (and output into the buffer).) But it shows that the problem definitely is in the TLS handling itself, and not in the DNS part of the changes. Let's see... Oh, I think I see the problem with the patch I asked you to test: #ifdef HAVE_GNUTLS if (p->gnutls_p && p->gnutls_state) nbytes =3D emacs_gnutls_read (p, chars + carryover + buffered, readmax - buffered); else #endif nbytes =3D emacs_read (channel, chars + carryover + buffered, readmax - buffered); So deferring setting g->gnutls_p is not a good idea. I'll try to debug this further, but may not have time today... > Can you post a summary of the changes that you've done, including the > files and functions where they were made? That will help Someone=99 > look into this problem on Windows. Uhm. Well, it was a 3200 line patch that affected process.c and gnutls.c... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no