Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netty WriteTimeoutException with 1.0.0-beta-3 #685

Closed
Bluexin opened this issue Oct 30, 2018 · 3 comments
Closed

Netty WriteTimeoutException with 1.0.0-beta-3 #685

Bluexin opened this issue Oct 30, 2018 · 3 comments
Assignees

Comments

@Bluexin
Copy link

Bluexin commented Oct 30, 2018

I just upgraded a WIP project of mine to Kotlin 1.3, and while doing this I upgraded Ktor from 0.9.5 to 1.0.0-beta-3.
Unfortunately, one of my pages (which worked just fine before), now doesn't load anything anymore (the client doesn't receive anything back from the server) and the server logs some of these :

Exception in thread "nettyWorkerPool-3-1" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-2" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-3" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-4" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-5" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-1" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-2" io.netty.handler.timeout.WriteTimeoutException
Exception in thread "nettyWorkerPool-3-3" io.netty.handler.timeout.WriteTimeoutException

(note that until I interrupt the browser trying to load the page these keep appearing at slow intervals, and that those don't get output to the logger, with no additional info)

It only happens for one of my pages and not the other one.

I will add more info (and try to make a simple test case for it) after a more thorough investigation of the issue, but was wondering if anyone was getting something similar.

@cy6erGn0m cy6erGn0m self-assigned this Oct 30, 2018
@Bluexin
Copy link
Author

Bluexin commented Oct 31, 2018

Update on the investigation :

It may have something to do with the Compression feature.
However, that alone isn't enough to cause the issue (as even with Compression enabled some pages were loading fine and others weren't).
However, disabling it did prevent the issue from happening.

@cy6erGn0m
Copy link
Contributor

There is a known bug around compression that causes it to close channel to early. It could cause timeouts but not completely sure yet.

@cy6erGn0m
Copy link
Contributor

Workarounded in 1.0.0-beta-4

schleinzer pushed a commit to schleinzer/ktor that referenced this issue Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants