Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

FTP ASCII vs binary "image" (Announce)

posted by mbbrutman Homepage, Washington, USA, 24.07.2010, 01:04

> > I am pretty certain on the CR/LF issue.
>
> I tested the ftp://ftp.openwatcom.org server and same problems:
>
> 1. mTCP defaults to ASCII, non-DOS FTP and Firefox to binary
>
> 2. bad performance (mTCP 22 KiB/s, other 82 KiB/s)
>
> 3. many lost packets

[1] Try the command line Windows FTP client with that server. You'll notice that it defaults to an ASCII transfer even on a file that should be sent in binary. This is the correct behavior (as defined by FTP RFCs) for a command line FTP client. If FireFox is getting it as a binary file, then it must be stuffing a 'BIN' command in the command stream first. You'd have to use a packet sniffer to verify that. But remember, the server sets the default transfer mode, not the client. If you find a client that gets BINARY, it is stuffing a BIN command under the covers.

That is something I'm not willing to do. Forcing a command on somebody transparently is wrong, even if you are trying to be helpful.


[2 & 3] What OS are you running Firefox under? You are comparing a full blown OS network stack to a DOS packet driver, and I'm willing to bet that the DOS packet driver is part of the problem. My code doesn't lose packets - it just reports the ones that it didn't get.

Other people are not reporting this, and generally when it happens it is something specific to the packet driver. Have you looked for a different version of the packet driver for your card? I remember you had a PCI cards, and by the PCI era packet drivers weren't being as well tested as they had been before.

Are all FTP servers bad, or only particular ones?



Mike

---
mTCP - TCP/IP apps for vintage DOS machines!
http://www.brutman.com/mTCP

 

Complete thread:

Back to the forum
Board view  Mix view
22780 Postings in 2123 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum