we are playing media through a local proxy server. Everything was fine till the new Samsung Grand device. In that specific device we are getting a Socket exception as following:
4-04 17:55:35.646: W/System.err(15187): java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
04-04 17:55:35.646: W/System.err(15187): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506)
04-04 17:55:35.646: W/System.err(15187): at libcore.io.IoBridge.sendto(IoBridge.java:475)
04-04 17:55:35.646: W/System.err(15187): at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
04-04 17:55:35.656: W/System.err(15187): at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
04-04 17:55:35.656: W/System.err(15187): at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
04-04 17:55:35.656: W/System.err(15187): at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
04-04 17:55:35.656: W/System.err(15187): at java.io.BufferedOutputStream.write(BufferedOutputStream.java:139)
04-04 17:55:35.656: W/System.err(15187): at com.ganeshane.music.gslib.comp.security.SecurityManager$EncryptDecryptAgent.decryptStreamWithHeaderAndFlush(SecurityManager.java:192)
04-04 17:55:35.656: W/System.err(15187): at com.ganeshane.music.gslib.comp.player.ProxyMediaPlayer$LocalFileServer.handleGetRequest(ProxyMediaPlayer.java:315)
04-04 17:55:35.656: W/System.err(15187): at com.ganeshane.music.gslib.comp.player.ProxyMediaPlayer$LocalFileServer.run(ProxyMediaPlayer.java:291)
04-04 17:55:35.656: W/System.err(15187): Caused by: libcore.io.ErrnoException: sendto failed: ECONNRESET (Connection reset by peer)
04-04 17:55:35.666: W/System.err(15187): at libcore.io.Posix.sendtoBytes(Native Method)
04-04 17:55:35.666: W/System.err(15187): at libcore.io.Posix.sendto(Posix.java:146)
04-04 17:55:35.666: W/System.err(15187): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
04-04 17:55:35.666: W/System.err(15187): at libcore.io.IoBridge.sendto(IoBridge.java:473)
04-04 17:55:35.666: W/System.err(15187): ... 8 more
Our get and head headers are:
HEAD = "HTTP/1.1 200 OK\r\n" + Date + "\r\n"
+ "Last-Modified: Mon, 19 Jan 20013 12:51:42 GMT\r\n"
+ "Connection: Keep-Alive\r\n"
+ "Content-Type: audio/mpeg\r\n"
+ "Accept-Ranges: bytes\r\n"
+ "Server: Apache/2.2.9\r\n" + "Content-Length: "
+ fileLength + "\r\n" + "\r\n";
GET = "HTTP/1.1 200 OK\r\n" + Date + "\r\n"
+ "Last-Modified: Mon, 19 Jan 20013 12:51:42 GMT\r\n"
+ "Connection: Keep-Alive\r\n"
+ "Content-Type: audio/mpeg\r\n"
+ "Accept-Ranges: bytes\r\n"
+ "Server: Apache/2.2.9\r\n" + "Content-Length: "
+ fileLength + "\r\n" + "\r\n";
Any help will be appreciated.