Re: [akka-user] Database query does not cancel when streaming rows using a DatabasePublisher

2017-02-01 Thread Mark Goldenstein
Hi Johan, Thank you for the quick response! Indeed, in my application I do create the DatabasePublisher anew for each request. This is a mistake I introduced when I stripped down the code for this forum post. Sorry about this. The problem I have is that even when the http connection is closed,

Re: [akka-user] Database query does not cancel when streaming rows using a DatabasePublisher

2017-02-01 Thread Akka Team
>From the slick docs: Execution of the DBIOAction does not start until a Subscriber is attached to the stream. Only a singleSubscriber is supported, and any further attempts to subscribe again will fail ... I'm guessing what you actually want is not to create your publisher once upon

[akka-user] Database query does not cancel when streaming rows using a DatabasePublisher

2017-02-01 Thread Mark Goldenstein
Hi guys! (Cross-posting this since I did not get a response in the Slick group.) I use akka-http together with Slick to stream rows from a mysql database as csv via http. Streaming works as expected unless I disconnect the http connection prematurely. In this case I would expect that the sql