我有以下内容进入我的restlet应用程序:
@Get
public String represent(Variant variant) throws ResourceException
{
String text = "returntext";
text+="\r\n";
return text;
}
当检查来自调用此服务的响应时,我得到以下内容:
CFG - HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Type: text/plain;charset=UTF-8
Date: Mon, 29 Jul 2013 19:59:37 GMT
Server: Restlet-Framework/2.0.9
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Content-Length: 118
Connection: keep-alive
连接不应该是:关闭而不是保持活着?
我认为导致连接被束缚,因为我只能调用一次服务。
答案 0 :(得分:0)
@Ab是对的。 http 1.1保持活力。这就是问题所在。