Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Unified Diff: state/open.go

Issue 61010043: state: fix i/o timeout errors
Patch Set: state: fix i/o timeout errors Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « [revision details] ('k') | state/settings_test.go » ('j') | no next file with comments »
('e') | ('c') | ('s')
Index: state/open.go
=== modified file 'state/open.go'
--- state/open.go 2014年01月25日 11:58:50 +0000
+++ state/open.go 2014年02月07日 18:38:02 +0000
@@ -23,6 +23,13 @@
"launchpad.net/juju-core/utils"
)
+// mongoSocketTimeout should be long enough that
+// even a slow mongo server will respond in that
+// length of time. Since mongo servers ping themselves
+// every 10 seconds, that seems like a reasonable
+// default.
+const mongoSocketTimeout = 10 * time.Second
+
// Info encapsulates information about cluster of
// servers holding juju state and can be used to make a
// connection to that cluster.
@@ -108,6 +115,7 @@
session.Close()
return nil, err
}
+ session.SetSocketTimeout(mongoSocketTimeout)
return st, nil
}
« no previous file with comments | « [revision details] ('k') | state/settings_test.go » ('j') | no next file with comments »
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /