Need to difference between two system properties for timeout Description: Hi team i need to what is difference bewteen below two system properties and their use glide.http.outbound.max_timeout glide.rest.outbound.ecc_response.timeout Which will ov

manish64
Giga Guru

Need to difference between two system properties for timeout  Description: Hi team i need to what is difference bewteen below two system properties and their use  glide.http.outbound.max_timeout glide.rest.outbound.ecc_response.timeout  Which will override other one ??

 

we are in kingston version 

1 ACCEPTED SOLUTION

SaiRaviKiran Ak
Giga Guru

Hi,

 

glide.http.outbound.max_timeout:

Specifies the number of seconds that RESTMessageV2 and SOAPMessageV2 APIs wait for a response from a synchronous call. The maximum value is 30 seconds.

To define a timeout longer than 30 seconds, set theglide.http.outbound.max_timeout.enabled system property to false and use thewaitForResponse()method to set the timeout. For examples, see Asynchronous RESTMessageV2 example and Asynchronous SOAPMessageV2 example. Ifglide.http.outbound.max_timeout.enabled is set to true and a value is passed in thewaitForResponse()method, the system uses the smallest value from either thewaitForResponse()method or theglide.http.outbound.max_timeout system property.

  • Type: integer
  • Default value: 30
  • Location: Add the propertyto the System Property [sys_properties] table.

glide.rest.outbound.ecc_response.timeout :

The system property glide.rest.outbound.ecc_response.timeout controls the maximum amount of time, in seconds, to wait for a response when sending an outbound REST message via the ECC queue (e.g. when using Mid server). Changes to this property will not take effect until your instance is restarted. 

 

Thanks,

Ravi

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Manish,

there is difference in both the properties:

1) glide.rest.outbound.ecc_response.timeout -> sending an outbound REST message via the ECC queue (e.g. when using Mid server)

2) glide.http.outbound.max_timeout -> RESTMessageV2 and SOAPMessageV2 APIs wait for a response from a synchronous call.

the first is for asynchronous call and the later one is for synchronous call

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar  / @SaiRaviKiran Akella 

We are facing an issue with integrations where POST calls are getting timeout intermittently. These are Synchronous POST calls which goes through MID Server. While checking with vendor they suggested us to go with Asynchronous method and waitforresponse(time). And also set the property set the glide.http.outbound.max_timeout.enabled system property to false & add property glide.rest.outbound.ecc_response.timeout with integer type to add the seconds.

1. I don't understand the fact why do we need to add property  glide.http.outbound.max_timeout.enabled  to false , because we are already setting waitforresponse(time) through Asynchronous method.

2. glide.http.outbound.max_timeout.enabled  to false - Will this property affect the timeout of 30 seconds for other Synchronous integration calls? I mean will it affect other Synchronous POST call integrations globally?

3. Why do we need to add property glide.rest.outbound.ecc_response.timeout, when we already have glide.http.outbound.max_timeout.enabled system property to false is set & waitforresponse(time) is set for asynchronous calls?

@imran rasheed 

Need to explore on this; if I get something will inform

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

SaiRaviKiran Ak
Giga Guru

Hi,

 

glide.http.outbound.max_timeout:

Specifies the number of seconds that RESTMessageV2 and SOAPMessageV2 APIs wait for a response from a synchronous call. The maximum value is 30 seconds.

To define a timeout longer than 30 seconds, set theglide.http.outbound.max_timeout.enabled system property to false and use thewaitForResponse()method to set the timeout. For examples, see Asynchronous RESTMessageV2 example and Asynchronous SOAPMessageV2 example. Ifglide.http.outbound.max_timeout.enabled is set to true and a value is passed in thewaitForResponse()method, the system uses the smallest value from either thewaitForResponse()method or theglide.http.outbound.max_timeout system property.

  • Type: integer
  • Default value: 30
  • Location: Add the propertyto the System Property [sys_properties] table.

glide.rest.outbound.ecc_response.timeout :

The system property glide.rest.outbound.ecc_response.timeout controls the maximum amount of time, in seconds, to wait for a response when sending an outbound REST message via the ECC queue (e.g. when using Mid server). Changes to this property will not take effect until your instance is restarted. 

 

Thanks,

Ravi