FTP 120 Service Ready Soon vs 226 Closing Data Connection
FTP 120 (Service Ready Soon) is a 1xx Positive Preliminary response, while 226 (Closing Data Connection) is a 2xx Positive Completion response. 120 indicates that the service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly. In contrast, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.
描述
The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.
何时出现
When connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.
如何修复
Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator.
描述
Closing data connection. The requested file action was successful and the data connection is being closed.
何时出现
After a file transfer, directory listing, or other data operation completes successfully.
如何修复
No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.
主要区别
120 is a 1xx Positive Preliminary response, while 226 is a 2xx Positive Completion response.
FTP 120: The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.
FTP 226: Closing data connection. The requested file action was successful and the data connection is being closed.
You encounter 120 when when connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.
You encounter 226 when after a file transfer, directory listing, or other data operation completes successfully.
何时使用哪个
For 120 (Service Ready Soon): Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator. For 226 (Closing Data Connection): No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.