mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 03:49:52 +00:00
Merge pull request #2756 from weaveworks/2464-maximize-timeout
maximize report publishing timeout Fixes #2464.
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
httpClientTimeout = 4 * time.Second
|
||||
httpClientTimeout = 12 * time.Second // a bit less than default app.window
|
||||
initialBackoff = 1 * time.Second
|
||||
maxBackoff = 60 * time.Second
|
||||
)
|
||||
@@ -328,7 +328,7 @@ func (c *appClient) Publish(r io.Reader, shortcut bool) error {
|
||||
select {
|
||||
case c.readers <- r:
|
||||
default:
|
||||
log.Errorf("Dropping report to %s", c.hostname)
|
||||
log.Warnf("Dropping report to %s", c.hostname)
|
||||
if shortcut {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user