mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
@@ -180,7 +180,7 @@ lookup_ipv6(const char *host_name, struct in6_addr *addr)
|
|||||||
* Most Open vSwitch code should not use this because it causes deadlocks:
|
* Most Open vSwitch code should not use this because it causes deadlocks:
|
||||||
* gethostbyname() sends out a DNS request but that starts a new flow for which
|
* gethostbyname() sends out a DNS request but that starts a new flow for which
|
||||||
* OVS must set up a flow, but it can't because it's waiting for a DNS reply.
|
* OVS must set up a flow, but it can't because it's waiting for a DNS reply.
|
||||||
* The synchronous lookup also delays other activty. (Of course we can solve
|
* The synchronous lookup also delays other activity. (Of course we can solve
|
||||||
* this but it doesn't seem worthwhile quite yet.) */
|
* this but it doesn't seem worthwhile quite yet.) */
|
||||||
int
|
int
|
||||||
lookup_hostname(const char *host_name, struct in_addr *addr)
|
lookup_hostname(const char *host_name, struct in_addr *addr)
|
||||||
|
@@ -54,7 +54,7 @@ struct stream_class {
|
|||||||
/* Prefix for connection names, e.g. "tcp", "ssl", "unix". */
|
/* Prefix for connection names, e.g. "tcp", "ssl", "unix". */
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
/* True if this stream needs periodic probes to verify connectivty. For
|
/* True if this stream needs periodic probes to verify connectivity. For
|
||||||
* streams which need probes, it can take a long time to notice the
|
* streams which need probes, it can take a long time to notice the
|
||||||
* connection was dropped. */
|
* connection was dropped. */
|
||||||
bool needs_probes;
|
bool needs_probes;
|
||||||
@@ -154,7 +154,7 @@ struct pstream_class {
|
|||||||
/* Prefix for connection names, e.g. "ptcp", "pssl", "punix". */
|
/* Prefix for connection names, e.g. "ptcp", "pssl", "punix". */
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
/* True if this pstream needs periodic probes to verify connectivty. For
|
/* True if this pstream needs periodic probes to verify connectivity. For
|
||||||
* pstreams which need probes, it can take a long time to notice the
|
* pstreams which need probes, it can take a long time to notice the
|
||||||
* connection was dropped. */
|
* connection was dropped. */
|
||||||
bool needs_probes;
|
bool needs_probes;
|
||||||
|
@@ -26,7 +26,7 @@ vlog = ovs.vlog.Vlog("stream")
|
|||||||
|
|
||||||
def stream_or_pstream_needs_probes(name):
|
def stream_or_pstream_needs_probes(name):
|
||||||
""" 1 if the stream or pstream specified by 'name' needs periodic probes to
|
""" 1 if the stream or pstream specified by 'name' needs periodic probes to
|
||||||
verify connectivty. For [p]streams which need probes, it can take a long
|
verify connectivity. For [p]streams which need probes, it can take a long
|
||||||
time to notice the connection was dropped. Returns 0 if probes aren't
|
time to notice the connection was dropped. Returns 0 if probes aren't
|
||||||
needed, and -1 if 'name' is invalid"""
|
needed, and -1 if 'name' is invalid"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user