Mark Minasi's Tech Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Phil-n-JaxFL

Avatar / Picture

Grumpy Old Men
Registered:
Posts: 85
Reply with quote  #1 
When a person logs into the Windows FTP server, he issues the command:
ls *.edi
and receives:
200 Type set to A.
229 Entering Extended Passive Mode (|||25708)
150 Opening ASCII mode data connection.

He runs the same command again and receives:
200 Type set to A.
229 Entering Extended Passive Mode (|||25708)
125 Data connection already open; Transfer starting.

His problem is that the first time he gets a 150 code and the second time he gets the 125 code. I told him this is by design and he says he needs it to always end with one code or the other.
I do not know to make it do that as it is two totally different statements
Anyone have any ideas? 
Thanks in advance.

__________________
Phil
0
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 258
Reply with quote  #2 
Hi,

I assume this is on the LAN so the data transmission is really fast and latency is reliably low. Then you could try setting dataChannelTimeout really low, to 1-2 seconds and see if it helps (https://www.iis.net/configreference/system.applicationhost/sites/sitedefaults/ftpserver/connections) The idea is to have IIS effectively close the data channel after each transaction so it would have to reopen it and signal a 150.

__________________
Evgenij Smirnov

My personal blog (German): http://www.it-pro-berlin.de/
My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
0
Phil-n-JaxFL

Avatar / Picture

Grumpy Old Men
Registered:
Posts: 85
Reply with quote  #3 
Thanks very much, CJ.
__________________
Phil
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.