阅读背景:

使用Java中的套接字的HTTP 1.1持久连接

来源:互联网 

Let's say I have a java program that makes an HTTP request on a server using HTTP 1.1 and doesn't close the connection. I make one request, and read all data returned from the input stream I have bound to the socket. However, upon making a second request, I get no response from the server (or there's a problem with the stream - it doesn't provide any more input). If I make the requests in order (Request, request, read) it works fine, but (request, read, request, read) doesn't.Let's say I have a java program that makes an H




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: