How to configure akka-http to return HTTP 503 in c

2019-09-04 15:28发布

问题:

I have a web application implemented using akka-http (version 1.0). It works fine with a small number (less than 40) of concurrent users. However when number of users reaches 40 I consistently see the following errors in the logs:

'Publisher (akka.stream.impl.MultiStreamOutputProcessor$SubstreamOutput@6d094473) you are trying to subscribe to has been shut-down because exceeding it's subscription-timeout.

The returned response is HTTP 500 Internal server error.

What configuration property is used to control this timeout?

Is it possible to configure akka-http to return HTTP 503 automatically in case of timeouts?