python/ovs/stream: Fix Stream.connect() retval for incomplete connection.
authorBen Pfaff <blp@nicira.com>
Thu, 22 Nov 2012 06:09:55 +0000 (22:09 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Nov 2012 06:10:38 +0000 (22:10 -0800)
commitdcb66daea433cd93593e517c3fac3c898f2c9f70
tree6017dbb628311a0302c20341f7e3ab9f768b0e7e
parent4fe3445afbbcda01e426d26cdcc1c7daa5d9f823
python/ovs/stream: Fix Stream.connect() retval for incomplete connection.

If the loop condition in Stream.connect() was false, which is especially
likely for TCP connections, then Stream.connect() would return None,
which violates its documented behavior.  This commit fixes the problem.

Reported-by: Isaku Yamahata <yamahata@valinux.co.jp>
Tested-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
python/ovs/stream.py