Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 apache 模块,我想知道如何处理我的 ap_rwrite 尝试将某些内容写回客户端而客户端没有响应的情况。对 ap_rwrite 的调用是否会阻塞直到发生这种情况?
我可以设置一个超时吗?如果是这样,它叫什么?
谢谢!
客户端不再响应服务器。HTTP是一种请求-响应协议,客户端向服务器发送请求,服务器向客户端发送响应。客户端不应响应服务器。
如果您的意思是如何知道客户端是否收到响应,也许您可以更改默认超时,但如果套接字关闭或其他网络错误,函数 'ap_rwrite' 会通知您一个错误。