all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Subject: Re: Ftp freezes on w32
Date: Sun, 05 Nov 2006 13:51:05 +0100	[thread overview]
Message-ID: <454DDE39.6060001@student.lu.se> (raw)
In-Reply-To: <454D305C.7080600@student.lu.se>

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.

However it looks to me like there is a more general bug involved here. 
If I run the ftp program above in just a w32 command window (cmd.exe) it 
looks like this

  C:\dl\ftp-for-win32\Release>ftp.exe
  ftp> open ftp.somehost.com
  Connected to ftp.somehost.com.
  220 somehost FTP Server ready
  Name (ftp.somehost.com:none): someuser
  331 Password required for someuser.
  Password:
  230 User someuser logged in.
  ftp> hash
  Hash mark printing on (1024 bytes/hash mark).
  ftp> pwd
  257 "/" is current directory.
  ftp> quote mdtm /htdocs/BalkanFotter/index.html
  213 20061104161649

Now I wait a bit more than 300 s and then try getting mode time again:

  ftp> quote mdtm /htdocs/BalkanFotter/index.html
  421 No Transfer Timeout (300 seconds): closing control connection.
  ftp>

If I try the last command in the ftp buffer instead then I get no 
response. Looking at Windows Task Manager I can see that both Emacs and 
the ftp process are active.

My guess is that the ftp process sends the line "421 ..." to standard 
error and that Emacs somehow misses this. Seems like a bug in either the 
ftp program or Emacs.

Could someone please comment on this?

  reply	other threads:[~2006-11-05 12:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-04 11:21 Ftp freezes on w32 Lennart Borgman
2006-11-05  0:29 ` Lennart Borgman
2006-11-05 12:51   ` Lennart Borgman [this message]
2006-11-07  1:14     ` Lennart Borgman
2006-11-07  8:13       ` Lennart Borgman
2006-11-07  8:23       ` Lennart Borgman
2006-11-07 15:29         ` Lennart Borgman
2006-11-07 16:53           ` Jason Rumney
2006-11-07 17:02             ` Lennart Borgman
2006-11-07 17:00           ` Stuart D. Herring
2006-11-07 18:45             ` Lennart Borgman
2006-11-07 22:30               ` Lennart Borgman
2006-11-08  4:08                 ` Eli Zaretskii
2006-11-08  7:20                   ` Lennart Borgman
2006-11-09  4:23                     ` Eli Zaretskii
2006-11-12 12:13                       ` Lennart Borgman
2006-11-09  0:53                   ` Richard Stallman
2006-11-07  8:25       ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=454DDE39.6060001@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.