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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -