Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout in CGIXMLRPCRequestHandler under IIS #45555

Closed
steenie mannequin opened this issue Sep 27, 2007 · 3 comments
Closed

Timeout in CGIXMLRPCRequestHandler under IIS #45555

steenie mannequin opened this issue Sep 27, 2007 · 3 comments

Comments

@steenie
Copy link
Mannequin

steenie mannequin commented Sep 27, 2007

BPO 1214
Nosy @avassalotti
Files
  • SimpleXMLRPCServer.diff
  • check-content-length.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-06-29.06:52:01.983>
    created_at = <Date 2007-09-27.16:25:56.496>
    labels = ['OS-windows']
    title = 'Timeout in CGIXMLRPCRequestHandler under IIS'
    updated_at = <Date 2009-06-29.06:52:01.982>
    user = 'https://bugs.python.org/steenie'

    bugs.python.org fields:

    activity = <Date 2009-06-29.06:52:01.982>
    actor = 'alexandre.vassalotti'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-06-29.06:52:01.983>
    closer = 'alexandre.vassalotti'
    components = ['Windows']
    creation = <Date 2007-09-27.16:25:56.496>
    creator = 'steenie'
    dependencies = []
    files = ['8476', '8869']
    hgrepos = []
    issue_num = 1214
    keywords = ['patch']
    message_count = 3.0
    messages = ['56168', '58171', '89817']
    nosy_count = 2.0
    nosy_names = ['alexandre.vassalotti', 'steenie']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1214'
    versions = ['Python 2.6', 'Python 2.5']

    @steenie
    Copy link
    Mannequin Author

    steenie mannequin commented Sep 27, 2007

    Using CGIXMLRPCRequestHandler results in a timeout if running behind
    Internet Information Server/CGI. Maybe there is no eof on sys.stdin
    under IIS and python continues to read even if there is no more data
    available. The same runs without problems under Apache/CGI.
    Reading only os.environ['CONTENT_LENGTH'] bytes from sys.stdin will as
    well work under IIS (see patch).

    @steenie steenie mannequin added the OS-windows label Sep 27, 2007
    @avassalotti
    Copy link
    Member

    Looks good to me. I updated the patch to use .get() with a default value
    instead of a if-statement with .has_key().

    @avassalotti
    Copy link
    Member

    This has been fixed in 2.6 and 3.x.

    Closing.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant