Skip to content

Timeouts

FanDjango edited this page May 7, 2026 · 13 revisions

Timeout Settings

  • Config.ConnectTimeout - Time to wait (in milliseconds) for a connection attempt to succeed, before giving up. Default: 15000 (15 seconds).

  • Config.ReadTimeout - Time to wait (in milliseconds) for data to be read from the FTP control stream, before giving up. Honored by all asynchronous methods as well. Default: 15000 (15 seconds).

  • Config.WriteTimeout - Time to wait (in milliseconds) for data to be written to the FTP control stream, before giving up. Honored by all asynchronous methods as well. Default: -1 (infinite).

  • Config.DataConnectionConnectTimeout - Time to wait (in milliseconds) for an Active FTP data connection to be established, before giving up. Default: 15000 (15 seconds).

  • Config.DataConnectionReadTimeout - Time to wait (in milliseconds) for the server to send data on the Active FTP data channel, before giving up. Does not affect data sent on the control channel or Passive FTP connections. Default: 15000 (15 seconds).

  • Config.DataConnectionWriteTimeout - Time to wait (in milliseconds) for the client to send data on the Active FTP data channel, before giving up. Does not affect data sent on the control channel or Passive FTP connections. Default: -1 (infinite).

For a client on windows, please also read the following:

Special considerations for windows timeout setting

Clone this wiki locally

⌂ 换网址