From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Connection drops data if it sent too quickly Date: 06 Feb 2003 08:45:45 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <84lm0x85j6.fsf@lucy.is.informatik.uni-duisburg.de> <5xlm0u71a1.fsf@kfs2.cua.dk> Reply-To: Michael Albinus NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044517577 30020 80.91.224.249 (6 Feb 2003 07:46:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2003 07:46:17 +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 18ggjc-0007nm-00 for ; Thu, 06 Feb 2003 08:46:12 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ggsZ-0003vN-00 for ; Thu, 06 Feb 2003 08:55:27 +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 18gglD-0007Ek-01 for emacs-devel@quimby.gnus.org; Thu, 06 Feb 2003 02:47:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ggkS-0006em-00 for emacs-devel@gnu.org; Thu, 06 Feb 2003 02:47:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ggjb-0005G1-00 for emacs-devel@gnu.org; Thu, 06 Feb 2003 02:46:14 -0500 Original-Received: from mailrelay2.alcatel.de ([194.113.59.71] helo=mailrelay1.alcatel.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ggjI-000500-00 for emacs-devel@gnu.org; Thu, 06 Feb 2003 02:45:52 -0500 Original-Received: from slbh00.bln.sel.alcatel.de (mailhost.bln.sel.alcatel.de [149.204.49.8]) by mailrelay1.alcatel.de (8.9.3/8.9.3) with ESMTP id IAA28371; Thu, 6 Feb 2003 08:45:26 +0100 (MET) Original-Received: from slbwba.bln.sel.alcatel.de (albinus@slbwba [149.204.93.83]) by slbh00.bln.sel.alcatel.de (8.9.3/8.9.3) with ESMTP id IAA22542; Thu, 6 Feb 2003 08:45:44 +0100 (MET) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: <5xlm0u71a1.fsf@kfs2.cua.dk> Original-Lines: 36 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-Alcanet-MTA-scanned-and-authorized: yes X-Alcanet-MTA-scanned-and-authorized: yes 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:11408 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11408 storm@cua.dk (Kim F. Storm) writes: > > 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. Not a native HP-UX problem, but a problem of Emacs process handling under HP-UX. The same code works without any problem from XEmacs. > 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! Yes, this would make sense. Maybe an autodetection during startup of Tramp, based on the code above. Kai? Best regards, Michael.