Thank you, Jeff,

Here is another alternative that fits my needs:
http://www.voidspace.org.uk/ironpython/simple_http_server.shtml

Best regards,
Dalius


On Wed, Dec 19, 2012 at 6:51 PM, Jeff Hardy <jdha...@gmail.com> wrote:

> On Tue, Dec 11, 2012 at 3:26 AM, Dalius Dobravolskas
> <dalius.dobravols...@gmail.com> wrote:
> > Hi,
> >
> > I have created python CGI script that should handle POST requests. I'm
> > running this script under IIS 7.5. It works without problems if I'm using
> > CPython but with IronPython I have problem (therefore I know it is
> > IronPython problem and not IIS). If POST request is longer than 320
> symbols
> > then my script freezes. Initially I was trying to use python cgi module
> - it
> > was working until I tried POST request with more data. Then I tried to go
> > deeper and tried to parse request manually - then I found out that
> reading
> > from sys.stdin freezes my script when more data than 320 symbols is
> passed
> > to script.
> >
> > As temporary solution I will use GET requests (but kitten is killed when
> you
> > use GET to modify data) or I will use alternative to CGI scripts (any
> > recommendations).
> >
> > I have created bug reports here:
> > http://ironpython.codeplex.com/workitem/33556
>
> Thanks for the issue report. I have no idea if it's an IronPython
> issue or an IIS issue, but since you say it works with normal Python,
> my guess is IronPython somewhere.
>
> One alternative is NWSGI (http://nwsgi.codeplex.com/) which uses
> IronPython to implement the standard Python WSGI interface.
>
> - Jeff
>
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to