From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: process.c: read_process_output: hard coded 4096 bytes read limit Date: Sun, 23 Jun 2013 11:28:38 +0200 Message-ID: <87txkpjhvd.fsf@igel.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371979731 29356 80.91.229.3 (23 Jun 2013 09:28:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Jun 2013 09:28:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miguel Guedes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 23 11:28:51 2013 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 1UqgbL-0001WZ-8b for ged-emacs-devel@m.gmane.org; Sun, 23 Jun 2013 11:28:51 +0200 Original-Received: from localhost ([::1]:58977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqgbK-0000og-7k for ged-emacs-devel@m.gmane.org; Sun, 23 Jun 2013 05:28:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqgbF-0000oW-B8 for emacs-devel@gnu.org; Sun, 23 Jun 2013 05:28:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqgbC-000866-OR for emacs-devel@gnu.org; Sun, 23 Jun 2013 05:28:45 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:35452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqgbC-00085e-Is for emacs-devel@gnu.org; Sun, 23 Jun 2013 05:28:42 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3bdSxN0ZLGz4KK60; Sun, 23 Jun 2013 11:28:40 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3bdSxN0LVZzbcRj; Sun, 23 Jun 2013 11:28:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id bD7-SZOlylDy; Sun, 23 Jun 2013 11:28:38 +0200 (CEST) X-Auth-Info: JsKIRnB+8tGMyhWRQipG7mj/qE00cQ7PuizoOzDxMvA= Original-Received: from igel.home (ppp-88-217-105-173.dynamic.mnet-online.de [88.217.105.173]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 23 Jun 2013 11:28:38 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id B0C50E438C; Sun, 23 Jun 2013 11:28:38 +0200 (CEST) X-Yow: Impudent.. Yet possessing a certain ALUMINUM SILICATE overbite....Needs REDDY-WHIP!! In-Reply-To: (Miguel Guedes's message of "Sat, 22 Jun 2013 10:05:10 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 212.18.0.9 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:160904 Archived-At: Miguel Guedes writes: > A minor mode I've written that sometimes receives 500-800KB of data as a > response from an async network connection (opened via make-network- > process) takes several seconds to fully receive the data due to the hard > coded limit mentioned above and the fact that emacs waits between reads > (probably in wait_reading_process_output upon receiving a signal in > sigchld_handler). If you call accept-process-output with this process it should read whatever is available without delay. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."