From: Lilijun <jerry.lili...@huawei.com> In my test with openstack setup, ovs-ofctl executes failed when there are many flow rules to be added by multiple threads. The error like this: ovs-ofctl: /var/run/openvswitch/br1.mgmt: failed to open socket (Protocol error)
In the function listen(fd, 10) in punix_open(), the number 10 should be modified to more bigger, such as 64 maybe a proper value. Signed-off-by: Lilijun <jerry.lili...@huawei.com> --- lib/stream-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stream-unix.c b/lib/stream-unix.c index b3d70b6..ab5252b 100644 --- a/lib/stream-unix.c +++ b/lib/stream-unix.c @@ -93,7 +93,7 @@ punix_open(const char *name OVS_UNUSED, char *suffix, return errno; } - if (listen(fd, 10) < 0) { + if (listen(fd, 64) < 0) { error = errno; VLOG_ERR("%s: listen: %s", name, ovs_strerror(error)); close(fd); -- 1.9.4.msysgit.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev