-# Copyright (c) 2010, 2012 Nicira Networks
+# Copyright (c) 2010, 2012 Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
import sys
import ovs.fatal_signal
+import ovs.poller
import ovs.vlog
vlog = ovs.vlog.Vlog("socket_util")
def check_connection_completion(sock):
- p = select.poll()
+ p = ovs.poller.SelectPoll()
p.register(sock, select.POLLOUT)
if len(p.poll(0)) == 1:
return get_socket_error(sock)