From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Connection drops data if it sent too quickly Date: Tue, 04 Feb 2003 10:42:07 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <84lm0x85j6.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1044374048 19176 80.91.224.249 (4 Feb 2003 15:54:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2003 15:54:08 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18g5Oc-0004yY-00 for ; Tue, 04 Feb 2003 16:54:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18g5Wl-00067R-00 for ; Tue, 04 Feb 2003 17:02:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18g5Mc-0004XK-0A for emacs-devel@quimby.gnus.org; Tue, 04 Feb 2003 10:51:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18g5IX-0002vb-00 for emacs-devel@gnu.org; Tue, 04 Feb 2003 10:47:45 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18g5Gw-0002JH-00 for emacs-devel@gnu.org; Tue, 04 Feb 2003 10:46:07 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18g5D5-0000Wp-00 for emacs-devel@gnu.org; Tue, 04 Feb 2003 10:42:07 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18g5D5-0007n3-00; Tue, 04 Feb 2003 10:42:07 -0500 Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-reply-to: <84lm0x85j6.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11343 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11343 The problem is that the connection is dropping bytes when the data is sent too quickly. I've changed it to send chunks of 500 bytes, then wait 0.1 seconds. This works. Perhaps we should put that into process-send-string so that Lisp code won't need to concern itself with this issue. But I wonder whether the bug is in ssh. If so, that's the place to fix it. If Emacs is talking to some other program instead, does the same bug happen? There seems to be code in process-send-region (or a function called from it) that tries to avoid sending data too quickly, but I don't grok it. I probably don't understand it either, but I don't think the problem being solved was one of losing data. I think that the buffer would get full and even worse things would happen.