Closed mooneyow closed 5 years ago
Added small update to single port mode.
They way garbage collection was implemented for the slice of connections was likely to leak memory. It's been changed from a timeout to a threshold. When the threshold is reached terminated connections will be cleared.
LGTM!
Thank you for your patience!
This allows you to add hooks for the success and failure of server transfers. I also did a little bit of cleaning to make
golint
happy.It does add
"github.com/stretchr/testify/mock"
as an external dependency. I haven't vendor'd it in this commit, but I can if you want.I'm happy to make changes if necessary :)