Re: [akka-user] Keep-Alive header

2016-12-25 Thread Alan Burlison
I've done a bit more investigation and it appears that the Akka
behaviour is correct HTTP/1.1 behaviour, which says that connections
should be persistent by default and that the "Connection: Keep-Alive"
header isn't needed. I was comparing to another REST service which
seems to get it wrong and returns the header.

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Keep-Alive header

2016-12-24 Thread Alan Burlison
On Saturday, 24 December 2016 12:15:58 UTC, Konrad Malawski wrote:

Share your code. What are you doing and what's the expected outcome.
>
> It's the demo code from 
http://doc.akka.io/docs/akka-http/current/scala/http/introduction.html#routing-dsl-for-http-servers.
 
The response I'm getting is:

$ http http://localhost:8080/hello
HTTP/1.1 200 OK
Content-Length: 31
Content-Type: text/html; charset=UTF-8
Date: Sat, 24 Dec 2016 12:25:15 GMT
Server: akka-http/10.0.1

Say hello to akka-http

$ 

i.e. no "Connection" or "Keep-Alive" headers. I've tried adding 
"respondWithHeader(Connection("Keep-Alive")" as well, but it makes no 
difference. 

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Keep-Alive header

2016-12-24 Thread Konrad Malawski
Share your code. What are you doing and what's the expected outcome.

On Dec 24, 2016 09:00, "Alan Burlison"  wrote:

> I'm using akka-http to implement a REST server and despite what the
> documentation says, it isn't adding a keep-alive header despite the client
> setting the appropriate headers. What am I missing?
>
> Thanks,
>
> Alan Burlison
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.