projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a14b62
)
Make secchan exit if the connection drops and can never be reconnected.
author
Ben Pfaff
<blp@nicira.com>
Wed, 17 Dec 2008 00:28:50 +0000
(16:28 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 17 Dec 2008 00:57:44 +0000
(16:57 -0800)
In particular this happens if the controller is specified using a fd vconn,
since once disconnected a fd vconn can never be reconnected.
This behavior is useful for vswitchd, which connects to secchan over a
fd vconn.
secchan/secchan.c
patch
|
blob
|
history
diff --git
a/secchan/secchan.c
b/secchan/secchan.c
index e2712cd112d531b147fdb8b456ac4c49f54f4f4f..0da3fd77adb12398e9d2cc54c836b7ee7a88293e 100644
(file)
--- a/
secchan/secchan.c
+++ b/
secchan/secchan.c
@@
-213,7
+213,7
@@
main(int argc, char *argv[])
executer_start(&secchan, &s);
}
-
for (;;
) {
+
while (s.discovery || rconn_is_alive(remote_rconn)
) {
struct relay *r, *n;
size_t i;