akka/akka-core

Expand on closing IncomingConnection in documentation

オープン

#19,940 opened on 2016/03/02

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)Scala (3,547 件のフォーク)batch import
1 - triagedhelp wantedt:stream

Repository metrics

Stars
 (13,277 個のスター)
PR merge metrics
 (平均マージ 8d 19h) (30d で 10 merged PRs)

説明

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.

コントリビューターガイド