3

My server is written using spray-can. Let's say inside the receive function I handle Timeout message like this:

case Timedout( HttpRequest(m,u,_,_,_)) =>
  sender ! HttpResponse( status = 500, entity = s"can't process $u request timedout" )

Is it possible that spray-can itself might response with 504 error ?

Yuli Reiri
  • 591
  • 7
  • 18
  • Where is this time out being set? Is this based on your business logic? Or is this a configuration timeout you pass to Spray? – Yuval Itzchakov Aug 21 '16 at 13:03
  • 1
    this is in the logic, like in this example: https://github.com/spray/spray/blob/master/examples/spray-can/simple-http-server/src/main/scala/spray/examples/DemoService.scala – Yuli Reiri Aug 21 '16 at 14:14

0 Answers0