Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Endless loop when client terminates the connection #7

Closed
folbricht opened this issue Apr 15, 2016 · 1 comment
Closed

Endless loop when client terminates the connection #7

folbricht opened this issue Apr 15, 2016 · 1 comment

Comments

@folbricht
Copy link
Contributor

When a client (properly) closes the connection, the server will take 100% CPU spinning in an endless loop. That's because in this case EOF is read which should cause the server to stop listening (break) but instead it goes back to listening (continue) and does that in a tight loop.

I believe https://github.com/goftp/server/blob/master/conn.go#L67 should be break instead of continue

@folbricht
Copy link
Contributor Author

Added #8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant