we facing issue client timeout failure call not getting invoked.
the issue appears following:
- the user clicks on sign in in our application.
- after 4sec user able login app.
- we recycle web services server , user taking 17sec response times out since had set our time out 10000ms our client requirements , stays on "sign in" page without showing error. on second attempt "sign in" app, response coming in 4 sec , app acts normally.
in case of timing out need invoke failure call user inform him error occurred , time out. call not getting invoked:
initoption.js:
var wlinitoptions = { . . // # worklight server connection timeout timeout: 10000, // # function handle failure of request timeout onrequesttimeout : function (error) { wl.simpledialog.show( "system error: request timeout", error, [{text: "close", handler: null}] ); }, . . }; worklight version 6.2
please let me know if code sharing required.
thanks
edite:
application flow:
once user launch application connect wl server, user click on sign in button trigger , adapter method "login".
once login process done, call user data , fetch them device.
as described, when user click on login app try invoke authentication function adapter. have set time out application wait response 10sec mentioned in coed above.
if application didn't response back, need show user dialog box appropriate text.
the issue getting resolved if increased timeout 10sec 30 sec. however, need keep timeout 10 sec , show user dialog box on timeout.
the timeout value mentioned in code between client , server, there additional timeout, between adapter procedure , backend; want have these synced/aligned/timed.
are using requesttimeoutinseconds in adapter xml?
read more here: ibm worklight 6.0.0.1 - timeout setting in adapters
Comments
Post a Comment