Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Set allow_reuse_address for GetAuthCodeServer helper class #96

Closed
wants to merge 1 commit into from

Conversation

KennethWilke
Copy link

Currently the GetAuthCodeServer socket lingers, this change helps prevent occurences of socket.error: [Errno 98] Address already in use errors such as:

File "onedrivesdk/helpers/GetAuthCodeServer.py", line 62, in get_auth_code
    GetAuthCodeRequestHandler)
  File "onedrivesdk/helpers/GetAuthCodeServer.py", line 78, in __init__
    HTTPServer.__init__(self, server_address, RequestHandlerClass)
  File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Currently the GetAuthCodeServer socket lingers, this change helps prevent 'Address already in use' errors
@earonesty
Copy link

earonesty commented Nov 26, 2019

merged into onedrive_fork (https://github.com/AtakamaLLC/onedrive-sdk-python)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants