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:11:16 +0000 (22:11 -0800)
commit892a2b9db8d58a67f713ff6a2a76ac29eb697a9e
tree33a296396476264534d3fc609cdb660375056f68
parentb35e641ea0ab67afcb6fe3aa4ffddc5d79062347
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