more work
This commit is contained in:
parent
4ccf4081b3
commit
bacf9cb443
3 changed files with 99 additions and 49 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
|
||||
import os
|
||||
import socket
|
||||
import select
|
||||
from collections import defaultdict
|
||||
|
||||
|
@ -192,7 +193,5 @@ def errno_from_exception(e):
|
|||
|
||||
# from tornado
|
||||
def get_sock_error(sock):
|
||||
errno = sock.getsockopt(socket.SOL_SOCKET,
|
||||
socket.SO_ERROR)
|
||||
errno = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
|
||||
return socket.error(errno, os.strerror(errno))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue