akka/akka-core

Expand on closing IncomingConnection in documentation

开放

#19,940 创建于 2016年3月2日

 (4 条评论) (1 个反应) (0 位负责人)Scala (3,547 个派生)batch import
1 - triagedhelp wantedt:stream

仓库指标

星标
 (13,277 个星标)
PR 合并指标
 (平均合并 8天 19小时) (30 天内合并 10 个 PR)

描述

At http://doc.akka.io/docs/akka/2.4.2/scala/stream/stream-io.html, the second paragraph after the second code block states:

Closing connections is possible by cancelling the incoming connection Flow from your server logic (e.g. by connecting its downstream to a Sink.cancelled and its upstream to a Source.empty). It is also possible to shut down the server's socket by cancelling the IncomingConnection source connections.

Please provide a code example of how to do this.

贡献者指南