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

2017-02-01 Thread Mark Goldenstein
sing what you actually want is not to create your publisher once > upon application start and subscribe to that multiple time like you do now > but rather once for every request that comes in to webservice/csv (so > inside the block of the get directive. > > -- > Johan > Akka Team >

[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