If an error occurred, the user would be notified, but often after significant lag time due to server processing.
如果有错误发生,就会通知用户,但通常由于需要服务器处理,通知会在很长一段延迟之后才发出。
A challenging error-handling case occurs when a client needs to know the outcome of a request in order to take the next step, after failure of a server.
其中一项挑战性的错误处理工作发生在以下的情况。当服务器发生故障以后,客户端需要了解请求的结果以进行继续的工作。
You tried to run a query after closing the connection to the server. This indicates a logic error in the application that should be corrected.
服务器关闭连接后,试图向服务器发送查询,这表明必须修改应用逻辑错误。
In cases of severe server errors, which make it impossible to continue serving the client (this shouldn't normally happen), the server will close the connection after sending the error line.
在一些严重的情形下(通常应该不会遇到),服务器将在发送这行错误后关闭连接。
That is, unless otherwise indicated, the client SHOULD assume that the server will maintain a persistent connection, even after error responses the server.
客户端默认办事端会对峙长连接,即便返回错误响应;除非明白指导不应用长连接。
That is, unless otherwise indicated, the client SHOULD assume that the server will maintain a persistent connection, even after error responses the server.
客户端默认办事端会对峙长连接,即便返回错误响应;除非明白指导不应用长连接。
应用推荐