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

To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x #50977

Closed
sjtuer mannequin opened this issue Aug 18, 2009 · 2 comments
Closed

To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x #50977

sjtuer mannequin opened this issue Aug 18, 2009 · 2 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@sjtuer
Copy link
Mannequin

sjtuer mannequin commented Aug 18, 2009

BPO 6728
Nosy @birkenfeld

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 2010-08-02.20:35:20.811>
created_at = <Date 2009-08-18.15:58:07.724>
labels = ['type-feature', 'library']
title = 'To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x'
updated_at = <Date 2010-08-02.20:35:20.809>
user = 'https://bugs.python.org/sjtuer'

bugs.python.org fields:

activity = <Date 2010-08-02.20:35:20.809>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2010-08-02.20:35:20.811>
closer = 'georg.brandl'
components = ['Library (Lib)']
creation = <Date 2009-08-18.15:58:07.724>
creator = 'sjtuer'
dependencies = []
files = []
hgrepos = []
issue_num = 6728
keywords = []
message_count = 2.0
messages = ['91707', '112537']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'sjtuer']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue6728'
versions = ['Python 3.2']

@sjtuer
Copy link
Mannequin Author

sjtuer mannequin commented Aug 18, 2009

The mismatched content length will cause hang up in sys.stdin.read().
The reason is probably described in bpo-1214 as well as 1725295.

length = int(os.environ.get('CONTENT_LENGTH', None))
"""Length fix for IIS 7.x to avoid hang up"""
length=length-2

I would appreciate if someone can create a diff or patch file for the
code above.

@sjtuer sjtuer mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Aug 18, 2009
@birkenfeld
Copy link
Member

Why would one read 2 bytes less than CONTENT_LENGTH?

@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
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant