docusign / docusign-esign-java-client

The Official Docusign Java Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://javadoc.io/doc/com.docusign/docusign-esign-java/latest/index.html
MIT License
105 stars 96 forks source link

Question:have the api support time out ? #173

Open SunStriderxxx opened 3 years ago

SunStriderxxx commented 3 years ago

i want to call the api with specified timeout, can i do it? or is there a default value for timeout?

SunStriderxxx commented 3 years ago

i found setReadTimeOut and setConnectionTimeOut method in apiclient, but in api requestJWTUserToken() , a new client was builded, have the new client a connection-timeout?

mmallis87 commented 3 years ago

@SunStriderxxx here are the links for connect timeout and read timeout.

Regarding your remark about the http client being rebuilt, right now there is a limitation where you need to set back the timeout parameters again after you authenticate...ticket DCM-4929 is going to get rid of this limitation (by saving timeout values and using them after authentication). This ticket's priority has been revisited and we should be able to work on it sooner than later. Until then you'll have to reset the timeout values again.

SunStriderxxx commented 3 years ago

@SunStriderxxx here are the links for connect timeout and read timeout.

Regarding your remark about the http client being rebuilt, right now there is a limitation where you need to set back the timeout parameters again after you authenticate...ticket DCM-4929 is going to get rid of this limitation (by saving timeout values and using them after authentication). This ticket's priority has been revisited and we should be able to work on it sooner than later. Until then you'll have to reset the timeout values again.

no, i use the requestJWTUserToken() method to authenticate, it will not affect member variable apiClient and i don't need to set the connection-timeout and read-timeout again. it just rebulid a local apiclient, which i can't set connection-timeout for it. i just want to confirm if i can set connection-timeout in requestJWTUserToken() in the future