Skip to content

Draft: Automatically close NRelay1 instances

Siddharth Singh requested to merge nrelay1-auto-disconnect into main

Closes #18.

This MR introduces a timeout parameter to NRelay1Opts, controlling the time in seconds after which the NRelay1 instance closes itself when inactive. The timeout is cleared when a new connection is added and replaces the existing socket with a new one if the existing socket has already been closed.

Merge request reports