question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable system out for dropped connections

See original GitHub issue

At least conditionally, otherwise any benchmarking session hangs after a single-shot run and prints every connection to System.out

2018-08-28 12:43:54.623 [engine-thread] ERROR Application - 200 OK: GET - /
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:51)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        at io.ktor.network.sockets.CIOWriterKt$attachForWritingDirectImpl$1$1.doResume(CIOWriter.kt:73)
        at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)
        at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:150)
        at kotlinx.coroutines.experimental.io.internal.MutableDelegateContinuation.run(MutableDelegateContinuation.kt:14)
        at io.ktor.network.util.IOCoroutineDispatcher$IODispatchedTask.run(IOCoroutineDispatcher.kt)
        at io.ktor.network.util.IOCoroutineDispatcher$IOThread$run$1.doResume(IOCoroutineDispatcher.kt:73)
        at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)
        at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:150)
        at kotlinx.coroutines.experimental.DispatchedContinuation.run(Dispatched.kt:14)
        at kotlinx.coroutines.experimental.EventLoopBase.processNextEvent(EventLoop.kt:136)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
e5lcommented, Apr 5, 2021

Fixed since 1.4.0

1reaction
snackycrackycommented, Aug 19, 2019

where can I find this CIO issue ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable system.out.println logs from Specific Java Package in ...
I am having an API which contains system.out.println. As it is from vendor I cannot comment that. So, I tried to disable from...
Read more >
[SOLVED] WiFi keeps disconnecting or dropping out
Click Configure. Go to the Power Management tab. Untick the box next to Allow the computer to turn off this device to save...
Read more >
How to Fix Packet Loss: Guide and Top 5 Tools - DNSstuff
Check your connections: First, get rid of the obvious options. · Restart your system: · Try cable connections instead of Wi-Fi · Remove...
Read more >
Internet Keeps Dropping? Here's why, and what you need to ...
Internet keeps dropping? Here are some quick and easy fixes that you can apply if your internet broadband keeps disconnecting.
Read more >
How To Recognize, Remove, and Avoid Malware
After recovering your operating system, you'll want to go back to steps 2, 3 and 4 to ensure that you've removed the malware....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found