Skip to content
This repository was archived by the owner on Feb 13, 2020. It is now read-only.
This repository was archived by the owner on Feb 13, 2020. It is now read-only.

socket exception handling #467

Open
Open
@macosforgebot

Description

@macosforgebot

mat.davey@… originally submitted this as ticket:799

  • Owner: @glyph
  • Cc: billyw.seminars@…

Whilst installing darwin calendar server on a ubutu 11.10 cloud image (aws), i came across the following.

In twext/web2/channel/http.py, within the function _cachedGetHostByAddr (Line 113), tries to get the host by addr using the python socket library, however the error raise is as follows

socket.error: Address family not supported by protocol

and not the socket.herror: [Errno 1] Unknown host which is handled.

as a quick fix i placed the following code within the try except so the exception is not raised.

hostname = hostaddr

Apologies if this has been reported before I had a quick search but could not find anything.

Let me know if you need any further details.

Mat

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions