From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Is it possible to change the recv buffer size dynamically for network process or subprocess? Date: Sun, 29 Mar 2020 23:37:58 -0400 Message-ID: References: <1de1c276-1bda-4ada-b3f4-7adaee296628@Spark> <837dz9c0n2.fsf@gnu.org> <838sjn9o5f.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="63324"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org, rpluim@gmail.com, monnier@iro.umontreal.ca To: HaiJun Zhang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 05:38:28 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIlFs-000GOq-Aq for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 05:38:28 +0200 Original-Received: from localhost ([::1]:44282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIlFr-00009o-D7 for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 23:38:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33644) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIlFP-00085r-Q8 for emacs-devel@gnu.org; Sun, 29 Mar 2020 23:38:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIlFP-0006iZ-9a; Sun, 29 Mar 2020 23:37:59 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jIlFO-0001yU-5T; Sun, 29 Mar 2020 23:37:58 -0400 In-Reply-To: (message from HaiJun Zhang on Sun, 29 Mar 2020 09:44:41 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245983 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > For example, when I run find or grep in a directory with plenty of files, the output of the subprocess may continue for 1 minute, while I can’t stop it. In ITS I put limits on the size of output buffers in interactive remote login so as to prevent that sort of problem. The small buffer ensured that if you typed C-c or C-z, you wouldn't have to wait as lots of output arrived before the program stopped generating more output. In Emacs, we want large buffers for the situation where a Lisp program is running and goes for some time without allowing subprocesses output to enter. Perhaps if we study the cases where we need a large buffer and the cases where we don't want a large buffer, we could find a criterion to distinguish. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)