mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
cmd/relaysrv: Go 1.3 fix (we should probably drop that compatibility soon)
This commit is contained in:
parent
becb5ab1dc
commit
a6c465e929
@ -212,7 +212,7 @@ func main() {
|
|||||||
|
|
||||||
func monitorLimits() {
|
func monitorLimits() {
|
||||||
limitCheckTimer = time.NewTimer(time.Minute)
|
limitCheckTimer = time.NewTimer(time.Minute)
|
||||||
for range limitCheckTimer.C {
|
for _ = range limitCheckTimer.C {
|
||||||
if atomic.LoadInt64(&numConnections)+atomic.LoadInt64(&numProxies) > descriptorLimit {
|
if atomic.LoadInt64(&numConnections)+atomic.LoadInt64(&numProxies) > descriptorLimit {
|
||||||
atomic.StoreInt32(&overLimit, 1)
|
atomic.StoreInt32(&overLimit, 1)
|
||||||
log.Println("Gone past our connection limits. Starting to refuse new/drop idle connections.")
|
log.Println("Gone past our connection limits. Starting to refuse new/drop idle connections.")
|
||||||
|
Loading…
Reference in New Issue
Block a user