Re: [akka-user] [Akka-HTTP] How do I drop the connection from the Server?

2016-08-19 Thread Konrad Malawski
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

[akka-user] [Akka-HTTP] How do I drop the connection from the Server?

2016-08-18 Thread Derek Wyatt
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