{"action":"closed","issue":{"url":"https://api.github.com/repos/hprose/hprose-java/issues/12","labels_url":"https://api.github.com/repos/hprose/hprose-java/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/hprose/hprose-java/issues/12/comments","events_url":"https://api.github.com/repos/hprose/hprose-java/issues/12/events","html_url":"https://github.com/hprose/hprose-java/issues/12","id":95099190,"number":12,"title":"java.io.EOFException 03-14 09:39:14.077: W/System.err(5935):     at libcore.io.Streams.readAsciiLine(Streams.java:203)","user":{"login":"andot","id":232161,"avatar_url":"https://avatars.githubusercontent.com/u/232161?v=3","gravatar_id":"","url":"https://api.github.com/users/andot","html_url":"https://github.com/andot","followers_url":"https://api.github.com/users/andot/followers","following_url":"https://api.github.com/users/andot/following{/other_user}","gists_url":"https://api.github.com/users/andot/gists{/gist_id}","starred_url":"https://api.github.com/users/andot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andot/subscriptions","organizations_url":"https://api.github.com/users/andot/orgs","repos_url":"https://api.github.com/users/andot/repos","events_url":"https://api.github.com/users/andot/events{/privacy}","received_events_url":"https://api.github.com/users/andot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T03:53:06Z","updated_at":"2015-07-15T03:54:12Z","closed_at":"2015-07-15T03:54:12Z","body":"我们在开发手机移动端的时候，在andriod4.0版本上，不断出现以下错误，困扰了我们很久：\r\n java.io.EOFException\r\n03-14 09:39:14.077: W/System.err(5935):     at libcore.io.Streams.readAsciiLine(Streams.java:203)\r\n03-14 09:39:14.077: W/System.err(5935):     at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:573)\r\n03-14 09:39:14.077: W/System.err(5935):     at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:821)\r\n03-14 09:39:14.077: W/System.err(5935):     at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)\r\n03-14 09:50:46.547: W/System.err(6476):     at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)\r\n03-14 09:50:46.547: W/System.err(6476):     at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)\r\n经过搜查，需要以下设置\r\nif (Build.VERSION.SDK != null&& Build.VERSION.SDK_INT > 13) {\r\nurlConnect.setRequestProperty(\"Connection\", \"close\");\r\n}\r\n见http://stackoverflow.com/questions/15411213/android-httpsurlconnection-eofexception\r\n咱们hporse 的java客户端，可以通过HproseHttpClient.setHeader(\"Connection\", \"close\")进行urlConnect属性指定，但是查看源代码发现，\r\n对于“Connection”属性，设置不起作用。\r\n我手工修改了源代码，设置了以上参数后，上面错误不再出现，希望新版本能支持！"}}