Hi Mickey.  You haven't said which platform (win/linux?) you're
running on, or whether this is a debug or production setup?

When I deploy our site using linux it runs in production mode which
means there's no stdout.  If we've left print statements in the code
then on occasion we get 'Broken Pipe' errors.  I believe that stdout's
buffer isn't being flushed as, under production mode, the output
doesn't go to screen (or indeed anywhere) so the buffer just fills up
and then barfs.  The site keeps going and the error gets logged.

Not that we tend to leave print stmts on deployed code (!), but it has
been known to happen.  The broken pipes have only ever appeared due to
print stmts.  On our dev environments we print stdout to screen so we
never see these 'broken pipe' errors.

Hope that helps?
Ian.

On Jan 10, 12:21 pm, Mickey <[EMAIL PROTECTED]> wrote:
> My TurboGears based app (still somewhat under development) throws this
> error, "exceptions.IOError [Errno 32] Broken pipe". My app uses TG
> 1.0.2 and Kid templates, along with the identity module for TG.
>
> I've peppered my code with log.debug statements, and it's failing at a
> point when I return a multi-valued function:
>
> def foo()
>   return 1, 2, 3, 4, 5
>
> a, b, c, d, e = foo()
>
> Restarting TG was making it go away, but now it fails every time.  It
> happens to be the main page of the app, so I'm really confused on this
> one.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to