Scala spray immediately close connection after send answer

185 views Asked by At

How scala spray immediately close connection after send answe?

In other http server Im set tcp optionsso_linger` = 0

Where I can set so_linger param in spray_can?

1

There are 1 answers

0
Kraylog On BEST ANSWER

You can set a Connection("close") header on the response. Spray-can will then close the connection.