Web API Timeout To Manually Set

 Hi, Is it possible to set the timeout of web api manually?

  Discussion posts and replies are publicly visible

Parents
  • Hi riang,
    If you make an OPTIONS call to your WebAPI URL from SoapUI or Postman you would get the response with the timeout attribute something like this:
    Connection: Keep-Alive
    Keep-Alive: timeout=20, max=100
    This means it allow the connection to be kept alive, for 20 seconds and for a maximum of 100 resources. These settings are controlled by the web server configuration, you need to set it up in your web server settings.
    I am not sure whether it could be controlled/set manually in WebAPI level.
    Thanks.
Reply
  • Hi riang,
    If you make an OPTIONS call to your WebAPI URL from SoapUI or Postman you would get the response with the timeout attribute something like this:
    Connection: Keep-Alive
    Keep-Alive: timeout=20, max=100
    This means it allow the connection to be kept alive, for 20 seconds and for a maximum of 100 resources. These settings are controlled by the web server configuration, you need to set it up in your web server settings.
    I am not sure whether it could be controlled/set manually in WebAPI level.
    Thanks.
Children