Questions tagged [spray-can]

7 questions
3
votes
0 answers

Can spray.io can return 504 if Actor accepting Timedout message?

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…
Yuli Reiri
  • 591
  • 7
  • 18
3
votes
1 answer

Increase max-content-length in spray-can

I try to increase the max-content-length so that large files can be uploaded to the server. I have added this to application.conf spray.can { server { parsing { max-content-length = 2g max-chunk-size = 10m } } } However the…
spydon
  • 9,372
  • 6
  • 33
  • 63
1
vote
0 answers

Increase max-uri-length in spray-can

Made changes as per the documentation. Still the max-uri-length is 2048. Please find my config below. I have made changes based on this link http://spray.io/documentation/1.1.2/spray-can/configuration/ spray.can { server { pipelining-limit =…
Temerario
  • 53
  • 1
  • 9
1
vote
0 answers

Huge number of OpenRequest in spray-can statistics

I'm using spray-can version 1.3.3 and akka 2.3.9 The server code looks pretty standard application.conf: spray.can { server { pipelining-limit = 10 request-timeout = 50ms stats-support = on } ... Boot: object Boot extends App { implicit…
Julias
  • 5,752
  • 17
  • 59
  • 84
1
vote
1 answer

Set max-content for single spray-can pipeline

I have an application that uses spray-can, and there is one module that periodically requests a very large amount of information from an http endpoint using a pipeline. This request is an anomaly when compared to the rest of the requests that we do…
pgoggijr
  • 414
  • 1
  • 3
  • 15
1
vote
1 answer

How to enable HTTP Pipelining with Spray-Can

I read on the spray-can docs that it supports HTTP Pipelining. But there is no method or example specified anywhere on how to do it.
MeetM
  • 1,410
  • 17
  • 25
0
votes
1 answer

How to remove spray-can/1.3.3 from response

I use spray.io to serve HTTP requests. In response there is information about spray framework that I would like to remove. So how to remove "Server: spray-can/1.3.3" from the response header in spray?
Yuli Reiri
  • 591
  • 7
  • 18