Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timed out trying to read data from the socket stream #244

Closed
Technojo01 opened this issue Nov 15, 2017 · 3 comments
Closed

Timed out trying to read data from the socket stream #244

Technojo01 opened this issue Nov 15, 2017 · 3 comments

Comments

@Technojo01
Copy link

FTP OS: Windows
FTP Server: ?
Computer OS: Windows 10

I'm getting this message when trying to download a file : Timed out trying to read data from the socket stream! Is this a firewall issue or something?

Logs :


# Connect()
Status:   Connecting to ***:21
Response: 220 FTP server ready
Response: 220-|-----------------------------------------------------------------|
Response: | This system is for the use of authorized users only.            |
Response: | Individuals using this computer system without authority, or in |
Response: | excess of their authority, are subject to having all of their   |
Response: | activities on this system monitored and recorded by system      |
Response: | personnel.                                                      |
Response: |                                                                 |
Response: | In the course of monitoring individuals improperly using this   |
Response: | system, or in the course of system maintenance, the activities  |
Response: | of authorized users may also be monitored.                      |
Response: |                                                                 |
Response: | Anyone using this system expressly consents to such monitoring  |
Response: | and is advised that if such monitoring reveals possible         |
Response: | evidence of criminal activity, system personnel may provide the |
Response: | evidence of such monitoring to law enforcement officials.       |
Response: | If you experience any difficulties in accessing or using this   |
Response: | site, please contact the Electronic Commerce Support Center at  |
Response: |-----------------------------------------------------------------|
Command:  USER ***
Response: 331 Password required for ***
Command:  PASS ***
Response: 230 User *** logged in
Command:  FEAT
Response: 211 End
Response: 211-Features:
Response: MDTM
Response: MFMT
Response: TVFS
Response: MFF modify;UNIX.group;UNIX.mode;
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response: REST STREAM
Response: SIZE
Status:   Text encoding: System.Text.ASCIIEncoding
Command:  SYST
Response: 215 UNIX Type: L8
Status:   Auto-detected UNIX listing parser

# DownloadFile("C:\Trf\Files\Ingram\Price.zip", "FUSION\CA\MLOGIC\PRICE.ZIP", True, None)

# GetFileSize("FUSION\CA\MLOGIC\PRICE.ZIP")
Command:  TYPE I
Response: 200 Type set to I
Command:  SIZE FUSION/CA/MLOGIC/PRICE.ZIP
Response: 213 9634169
Command:  TYPE A
Response: 200 Type set to A

# OpenRead("FUSION\CA\MLOGIC\PRICE.ZIP", Binary, 0)
Command:  TYPE I
Response: 200 Type set to I

# GetFileSize("FUSION\CA\MLOGIC\PRICE.ZIP")
Command:  SIZE FUSION/CA/MLOGIC/PRICE.ZIP
Response: 213 9634169

# OpenPassiveDataStream(AutoPassive, "RETR FUSION/CA/MLOGIC/PRICE.ZIP", 0)
Command:  EPSV
Response: 501 EPSV: Operation not permitted

# OpenPassiveDataStream(PASV, "RETR FUSION/CA/MLOGIC/PRICE.ZIP", 0)
Command:  PASV
Response: 227 Entering Passive Mode (63,101,150,69,156,250).
Status:   Connecting to ***:40186
Command:  RETR FUSION/CA/MLOGIC/PRICE.ZIP
Response: 150 Opening BINARY mode data connection for FUSION/CA/MLOGIC/PRICE.ZIP (9634169 bytes)
Status:   Disposing FtpSocketStream...
Status:   Disposing FtpSocketStream...
Status:   Testing connectivity using Socket.Poll()...
Status:   There is stale data on the socket, maybe our connection timed out or you did not call GetReply(). Re-connecting...
Status:   Testing connectivity using Socket.Poll()...
Status:   The stale data was: 451 Transfer aborted. Broken pipe
Status:   Disposing FtpSocketStream...
Status:   Not sending QUIT because the connection has already been closed.
Status:   Disposing FtpSocketStream...

# Dispose()
Status:   Disposing FtpClient object...
Status:   Disposing FtpSocketStream...

@robinrodricks robinrodricks changed the title DownloadFile issue Timed out trying to read data from the socket stream Dec 4, 2017
@franzvalo1
Copy link

Any updates on this issue? I'm having this message several times in a multithread process that download resources from a Filezilla Server.

@franzvalo1
Copy link

I was having this trouble in a machine running Windows Server 2008 r2 and I resolved it by upgrading the Filezilla Server version from 0.9.41 to 0.9.60.
The messages from TimedOut were almost always accompained by a 426 Could Not create Socket, if you have been looking for the root problem maybe you should try upgrading before wasting time in your implementation.

@robinrodricks
Copy link
Owner

Discussion will continue in #122.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants