Re: Getting xml-rpc and w.bloggar to work

will <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Hmmm...  seems really fishy to me.  Basically you're saying that flush
doesn't do anything for stdout.  Why is this an issue only with xmlrpc
stuff?  Theoretically, this should affect everything that uses cgi, right?

I suspect the issue is something else.  Are you sure the Content-Length is
set correctly?  When I look at the code it seems that you set the
Content-Length to the size of the response, but then send the response and
an extra CR.  Are you sure it's not an off-by-one issue?  Where did you
put the sys.stdout.flush()?


On Wed, 13 Aug 2003, Wari Wahab wrote:
>
> On Wed, 2003-08-13 at 20:57, will wrote:
> > If that's the problem, doing a sys.stdout.flush() should fix the issue as
> > well.
>
> No it doesn't, I did a:
>
> for x in xrange(1000):
>   sys.stdout.flush()
>
> And I get the same intermitent problem without fail. You won't know
> until you tried as many things as I have.. It had me stumped


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.