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

Time Out for SOAP Client #31

Open
alpeshrpatel opened this issue Sep 2, 2016 · 2 comments
Open

Time Out for SOAP Client #31

alpeshrpatel opened this issue Sep 2, 2016 · 2 comments

Comments

@alpeshrpatel
Copy link

Hey,

We are consuming SOAP end-point and some of end-point are taking more time to response.

If you have any option for setting up time out . Please reply me ASAP.

Rgds,
Alpesh

@yaronn
Copy link
Owner

yaronn commented Sep 3, 2016

if the endpoint does answer at the end (connection is not stack) then this does not seem an issue with ws.js. try calling the endpoint with curl (or a c# client) and you will probably get the same results.

@yaronn
Copy link
Owner

yaronn commented Sep 3, 2016

ok now I understand you ask how to configure a timeout. ws.js does not expose this setting, but ws.js uses the 'request' module which should support this setting, in which case you can change ws.js code here:

https://github.com/yaronn/ws.js/blob/master/lib/handlers/client/http.js

just maybe you can do it without changing the ws.js code bu requiring 'request' in your code before you require ws.js, which should give the effect of default setting to all of the requests, but not sure about it.

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