" /> [SOLVED] Web Services timeout in URS 8.1 does not seem to work - Genesys CTI User Forum

Author Topic: [SOLVED] Web Services timeout in URS 8.1 does not seem to work  (Read 1182 times)

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Advertisement
I have configured the http_conn_idle_timeout in the web section of URS's options, but when the interaction reaches the web service block in the strategy, if it does not get a response it stays there indefinitely (maybe is not exactly idle). I set soap_conn_idle_timeout too, but in this senario the request is an HTTP POST, not SOAP.

Is there a way to set an "absolute" timeout to force the request to abort if there is no return from the request?




Best,
Gef
« Last Edit: June 27, 2023, 11:02:50 AM by Gef Buneri »

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Web Services timeout in URS 8.1 does not seem to work
« Reply #1 on: June 08, 2023, 08:57:17 AM »
Those options do not work as expected - try to use following function within routing strategy :

SetCallOption['request_timeout','1000']

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Re: Web Services timeout in URS 8.1 does not seem to work
« Reply #2 on: June 08, 2023, 09:21:16 AM »
So using a local override, same as a DB request.

It works, thank you very much Kubig, I didn't think this method was applicable to web services, I usually use it for DB interactions.
« Last Edit: June 08, 2023, 09:24:01 AM by Gef Buneri »

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Web Services timeout in URS 8.1 does not seem to work
« Reply #3 on: June 21, 2023, 11:08:19 PM »
...idle_timeout options have different usage - how long to keep unused open connections in cache of connections that httpbridge support.

Option that controls how long to execute requests to external services is default/request_timeout

Offline Gef Buneri

  • Sr. Member
  • ****
  • Posts: 373
  • Karma: 0
  • Madness is just a point of view.
Re: Web Services timeout in URS 8.1 does not seem to work
« Reply #4 on: June 23, 2023, 07:23:01 AM »
Thanks Terry.