How to set a server side request timeout in CXF/Spring Servlets? -


i have web service connecting database on backend provide information. database can slow, , i'll end client disconnects after 10 seconds, server continues process request , end broken pipe exception.

i'm wondering if there way, on web service side, set request timeout, if spend more x seconds reply request made me, servlet throw error client, , servlet try kill thread processing request.

is possible using cxf/spring provide servlet?

it's possible using httpclientpolicy , setreceivetimeout method. here can find details information how configure on server side.


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -