pin / tftp

TFTP server and client library for Golang
MIT License
287 stars 71 forks source link

Add success and failure hooks #50

Closed mooneyow closed 5 years ago

mooneyow commented 5 years ago

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 :)

mooneyow commented 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.

pin commented 5 years ago

LGTM!

Thank you for your patience!