libp2p/jvm-libp2p

Test coverage of MultiplexHandler/Channel

オープン

#27 opened on 2019/07/12

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Kotlin (85 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (359 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Cover the MultiplexHandler/Channel classes with unit tests. These are pretty central and non-primitive classes so they should be tested well. Primary attention should paid to closing child channels, so once the channel is created it must be finally closed. Child channels shouldn't leak. There are following close circumstances:

  • parent channel is closed
  • remote peer sends RESET signal
  • local peer sends RESET (on channel.close() invoked)
  • remote and local peers sends CLOSE (on channel.disconnect())

Child channels may be created with MultiplexHandler.createStream() asynchronously from any thread and prior to the parent channel is activated. Those cases should also be considered.

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