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:12:36 +0000 (22:12 -0800)
commitaa8d2ee8ae0d47f1683cf51e83f104022102ed73
treed8d2225463f06ee53b16ba154431790b14cfdb83
parent5d98c83b9dec5f86af52df52695c7f43d2a63602
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