Conversation
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
cmd/magneticod/main.go
Outdated
|
|
||
| LeechMaxN uint `long:"leech-max-n" description:"Maximum number of leeches." default:"200"` | ||
| LeechMaxN uint `long:"leech-max-n" description:"Maximum number of leeches." default:"200"` | ||
| MaxThrottle uint `long:"max-throttle" description:"Maximum requests per second." default:"0"` |
There was a problem hiding this comment.
I would probably called this variable more precisely. Probably MaxRps and --max-rps or something more self-describing as a parameter name.
|
I'm trying to build it, but I'm getting |
This seems to work pretty fine. |
|
Hi @lruggieri
What is mps? It seems requests per second but which requests are you talking about? DHT or BitTorrent? |
Added a simple throttler to limit the mps. Nothing fancy, just a limiter on the number of messages (of any kind) sent each second.