Error closing socket input stream. Version: 2.7.1
Device : Samsung s7 Version : 2.7.1 Sdk Version : 27
HttpProxyCacheServer proxy = new HttpProxyCacheServer(this); String proxyUrl = proxy.getProxyUrl("HTTPS URL");
here is details logs :
26503-27478/com.oevo E/HttpProxyCacheServer: HttpProxyCacheServer error com.danikula.videocache.ProxyCacheException: Error closing socket input stream. Version: 2.7.1 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:287) at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272) at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245) at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54) at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: java.io.IOException: shutdown failed: ENOTCONN (Transport endpoint is not connected) at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:267) at java.net.AbstractPlainSocketImpl.shutdownInput(AbstractPlainSocketImpl.java:582) at java.net.Socket.shutdownInput(Socket.java:1565) at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:280) at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272) at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245) at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54) at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: android.system.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected) at libcore.io.Linux.shutdown(Native Method) at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:176)
same problem
~~same
same
same!~~
same +1
same+1 , please help !
I give up!
Same+1
+1
same!please help.
same~help
same
same+1
相同+1
any fix?
any fix?
oh, same~
i encounter the same problems and crash。
@danikula we are waiting your answers here.
same + 1
same+1
same +1
same +1
same +1
whats happening?
same+1, any fix?
Any solution? @danikula
same
same+1
same+2
same + 1
same + 1
samsung s8, same +1
same +1
mix3 same+1
will there be a fix for this issue ?
Did anyone get the solution?
same+1 @danikula
same
Same bro Kindly update!!!
+1
+1
+1
same +1
same here , any fix ?
^
Any fix? @danikula
Its urgent
@selimonline have you solved this problem?
same, and with ANR...
Is the library owner still alive?
same issue +1
Same issue +1
+1
+1
If you can't solve it. Please add all the issue in lable hacktoberfest so someone may help.
Hope everyone agreed.
+1
Same here +1
same
Same +1
same +1
same +1 @danikula Are you ok , we worry about you .
same, I also got the same error. @danikula please update its kinda urgent. Or if anyone got the solution please reply to this problem.
change the if statement to if (!socket.isInputShutdown()&&socket.isConnected()) might fix the error
same +1 Samsung A71
I think the bug waited long enough. I'm gonna attempt to find a fix or at least get the bottom of the issue. Inputs, suggestions, comments or concerns are all welcome.
same +1
same exception when using MediaPlayer, but not in ExoPlayer.
Change cache directory
val proxyServer = HttpProxyCacheServer
.Builder(context)
.cacheDirectory(context.filesDir)
.maxCacheSize(1024 * 1024 * 1024)
.build()
val proxyURL = proxyServer.getProxyUrl(sourceUrl)