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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message