From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Connection drops data if it sent too quickly Date: 06 Feb 2003 00:31:18 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xlm0u71a1.fsf@kfs2.cua.dk> References: <84lm0x85j6.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044484358 14116 80.91.224.249 (5 Feb 2003 22:32:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2003 22:32:38 +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 18gY5R-0003dR-00 for ; Wed, 05 Feb 2003 23:32:09 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18gYED-0007Ad-00 for ; Wed, 05 Feb 2003 23:41:13 +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 18gY5s-0000pr-04 for emacs-devel@quimby.gnus.org; Wed, 05 Feb 2003 17:32:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18gY5d-0000oa-00 for emacs-devel@gnu.org; Wed, 05 Feb 2003 17:32:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18gY5c-0000nS-00 for emacs-devel@gnu.org; Wed, 05 Feb 2003 17:32:20 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18gY5P-0000fN-00; Wed, 05 Feb 2003 17:32:07 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id B79437C017; Wed, 5 Feb 2003 23:32:05 +0100 (CET) Original-To: Michael Albinus In-Reply-To: Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: Richard Stallman 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:11394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11394 Michael Albinus writes: > Richard Stallman writes: > > > 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? > > I've written some few lines which reproduce the problem under HP-UX > with all Emacsen available for me (20.7, 21.2, 21.2.93): > > (with-temp-buffer > (let ((bytes 1000) > (proc (start-process (buffer-name) (current-buffer) "wc" "-c"))) > (process-send-string proc (make-string bytes ?x)) > (process-send-eof proc) > (process-send-eof proc) > (accept-process-output proc 1) > (goto-char (point-min)) > (re-search-forward "\\w+") > (message "Bytes sent: %s\tBytes received: %s" bytes (match-string 0)))) > > No problem under other Unices, like Solaris. So this sounds like a HP-UX specific problem. As such, it would be great if the current 0.1 second chunk delay (and similar delay in tramp-send-linewise) was a defvar which could be set to 0.0 on non-HPUX (and non-Tru64) platforms. That would make tramp run MUCH faster. I tried this on GNU/Linux, and it makes a huge difference! -- Kim F. Storm http://www.cua.dk