From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: network process timeouts Date: Thu, 22 Sep 2016 08:22:32 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87wpi4azuf.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1474548445 13044 195.159.176.226 (22 Sep 2016 12:47:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2016 12:47:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 22 14:47:22 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn3PM-0002mW-1g for ged-emacs-devel@m.gmane.org; Thu, 22 Sep 2016 14:47:20 +0200 Original-Received: from localhost ([::1]:43253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn3PK-0004qj-6U for ged-emacs-devel@m.gmane.org; Thu, 22 Sep 2016 08:47:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn31t-0007JF-Dr for emacs-devel@gnu.org; Thu, 22 Sep 2016 08:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn31p-0000qV-3r for emacs-devel@gnu.org; Thu, 22 Sep 2016 08:23:04 -0400 Original-Received: from [195.159.176.226] (port=57977 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn31o-0000pJ-TQ for emacs-devel@gnu.org; Thu, 22 Sep 2016 08:23:01 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bn31Z-0002Ad-9B for emacs-devel@gnu.org; Thu, 22 Sep 2016 14:22:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@blaine.gmane.org 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 Cancel-Lock: sha1:PxS4Qs5TJn3bCXC+tvpDwEFvzg4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:207690 Archived-At: This came up as a Gnus question. I don't think Emacs today supports connection timeouts. Once the network connection is attempted, the control passes down to the networking layer, which could be GnuTLS. So the timeout parameter could be set with gnutls_handshake_set_timeout() (for which we'll need to modify gnutls.c) or with set_socket_option(SO_RCVTIMEO/SO_SNDTIMEO) in process.c. At the Emacs Lisp level, it would be a new parameter for `make-network-process'. The good news is that all packages, not just Gnus, would benefit from that. So I think it's a good platform improvement. If I've missed existing functionality to do network timeouts, please let me know. Thanks Ted