Getting ClosedChannelException when long processing occurs

10 views
Skip to first unread message

Aaron Baff

unread,
Jan 6, 2017, 5:25:23 PM1/6/17
to RestExpress
So I'm getting a ClosedChannelException when handling a call takes too long (over 1000 ms), which seems to me like Netty is chopping off the connection to release the remote client. However I don't want this, I want it to remain open until processing is done so I can send the appropriate response. Is there a RestExpress setting I can use to change that timeout? The only change from default settings I've made is the ServerSettings.maxContentSize which I increased from the default.

--Aaron

Aaron Baff

unread,
Jan 6, 2017, 6:19:44 PM1/6/17
to RestExpress
Never mind... turns out I missed seeing that the client-side had a 1s so_timeout. *facepalm*

Todd Fredrich

unread,
Jan 6, 2017, 7:52:53 PM1/6/17
to RestExpress
Glad you figured it out!

Todd

Reply all
Reply to author
Forward
0 new messages