FYI for readers of this thread:

We chatted this over on twitter
https://twitter.com/derekwyatt/status/766652868052918272
In general it is not legal HTTP to not send a response code,
so the typical proper way is to Connection: close and a 500 response code
I'd say.

The really killing a connection could be a power user feature indeed.

On Thu, Aug 18, 2016 at 2:11 PM, Derek Wyatt <de...@derekwyatt.org> wrote:

> Hi guys,
>
> A client connects, and I don't like him.  I don't want to respond to him
> at all; I just want to disconnect him entirely.
>
> I'm using the high level routing DSL and I've read some things about
> cancelling the HTTPResponse Entity's stream, but that doesn't seem to be
> dropping the connection.
>
> Can this be done using the high level API or do I need to refactor my code
> to use the low level API?
>
> Thanks,
> Derek
>
> --
> >>>>>>>>>> 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.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
Akka <http://akka.io/> @ Lightbend <http://lightbend.com/>

-- 
>>>>>>>>>>      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.

Reply via email to