FTP

FTP 120 Service Ready Soon vs 221 Closing Control Connection

FTP 120 (Service Ready Soon) is a 1xx Positive Preliminary response, while 221 (Closing Control 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, 221 means that service closing control connection. The server is logging out and closing the session in response to a QUIT command.

Описание

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.

Описание

Service closing control connection. The server is logging out and closing the session in response to a QUIT command.

Когда вы это видите

After issuing the QUIT command to gracefully disconnect from the FTP server.

Как исправить

No fix needed — the session has ended normally. Reconnect with a new session if needed.

Ключевые различия

1.

120 is a 1xx Positive Preliminary response, while 221 is a 2xx Positive Completion response.

2.

FTP 120: The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

3.

FTP 221: Service closing control connection. The server is logging out and closing the session in response to a QUIT command.

4.

You encounter 120 when when connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

5.

You encounter 221 when after issuing the QUIT command to gracefully disconnect from the FTP server.

Когда что использовать

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 221 (Closing Control Connection): No fix needed — the session has ended normally. Reconnect with a new session if needed.

Узнать больше