From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Ftp freezes on w32 Date: Tue, 07 Nov 2006 02:14:25 +0100 Message-ID: <454FDDF1.7010709@student.lu.se> References: <454C77D4.2090609@student.lu.se> <454D305C.7080600@student.lu.se> <454DDE39.6060001@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162862095 27768 80.91.229.2 (7 Nov 2006 01:14:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2006 01:14:55 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 07 02:14:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GhFYA-00041G-MX for ged-emacs-devel@m.gmane.org; Tue, 07 Nov 2006 02:14:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhFYA-0004VQ-4s for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 20:14:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GhFXv-0004P4-Dt for emacs-devel@gnu.org; Mon, 06 Nov 2006 20:14:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GhFXt-0004KD-Um for emacs-devel@gnu.org; Mon, 06 Nov 2006 20:14:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhFXt-0004Ju-Ld for emacs-devel@gnu.org; Mon, 06 Nov 2006 20:14:33 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GhFXt-0001zk-BW for emacs-devel@gnu.org; Mon, 06 Nov 2006 20:14:33 -0500 Original-Received: from c83-249-218-244.bredband.comhem.se ([83.249.218.244]:60507 helo=[192.168.123.121]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GhFXn-0003eX-4Z; Tue, 07 Nov 2006 02:14:30 +0100 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: Lennart Borgman In-Reply-To: <454DDE39.6060001@student.lu.se> X-Scan-Result: No virus found in message 1GhFXn-0003eX-4Z. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GhFXn-0003eX-4Z 77d72f68bdc59a8984600eb39e49271c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61890 Archived-At: Lennart Borgman wrote: > Lennart Borgman wrote: >> Lennart Borgman wrote: >>> I have seen a problem with ftp on w32 which I have not had time to >>> report before. The problem is that if I make a small pause for some >>> minutes then ftp hangs. Looks like there perhaps is some problem >>> with the ftp process. Here is a more detailed description: >>> >>> >>> I have downloaded the ftp program mentioned on >>> http://www.emacswiki.org/cgi-bin/wiki/AngeFtp and my >>> ange-ftp-ftp-program-name is c:/dl/ftp-for-win32/Release/ftp.exe. I >>> am using w2k on this pc. My CVS Emacs is from 2006-11-03. >>> >>> I open a remote file with the name >>> "/ftp:someuser@ftp.somehost.com:/htdocs/somepath/index.html". After >>> doing the first changes to the remote file point is on line 79 in >>> the buffer "*ftp someuser@ftp.somehost.com*". >>> >>> Now I wait maybe 10 min. Then I try again to change the file. Now >>> Emacs freezes right after the first character, but C-g helps and the >>> screen gets updated again. Looking in the ftp buffer point is still >>> on line 79 right after the prompt. However now there is some text >>> after the prompt: >>> >>> ftp> quote mdtm /htdocs/somepath/index.html >>> >>> If I in the window showing the ftp buffer now press up arrow I get >>> the error message: >>> >>> Wrong type argument: processp, nil >> >> I have looked at this a bit more. The process get killed in >> `ange-ftp-wait-not-busy' so there is no strange with that the process >> is gone. >> >> However what is happening is that the `ange-ftp-wait-not-busy' never >> ends. The process filter in `ange-ftp-process-filter' recieves a >> string with only nulls (in the argument str). >> >> Since this is reproducible it seems possible to make a fix for it. A >> signal can be sent from the process filter and this can be caught in >> `ange-ftp-raw-send'. But it does not seem quite right to me. >> >> Is there not something suspicious about that the process filter >> receives just nulls? Is there something wrong with emacs_read? > > Some more information. > > Workaround: It is possible to workaround the problem by simply > deleting the inferior ftp process in `ange-ftp-process-filter' when a > string with just a lot of nulls is recieved. I was wrong when I said I can work around the problem by deleting the inferior ftp process. I can't because I can not get rid of the ftp process. It seems impossible in Emacs on w32. Does someone have any reciepe how to get ange-ftp to work on w32? I do not know of any way to get it working.