> No, strmOut is TASASStreamOut -- that object is created by
> ThreadedAppServer, and Application never sees the raw socket object.
> TASASStreamOut does send data on the socket, though only if you do
> .autoCommit(1).
>
> The problem might be in TASASStreamOut.flush:

Ahhh! Thank you. For some reason I never looked at that method closely and 
went ahead to look at the base class.

>      try:
>          sent = sent + self._socket.send(self._buffer[sent:sent+8192])
>      except socket.error, e:
>          if e[0]==errno.EPIPE: #broken pipe
>              pass
>          else:
>              print "StreamOut Error: ", e
>          break
>
> This error handling is sub-optimal, to say the least.

Indeed. I just changed "pass" to "raise" - problem gone.

Thanks again,

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrival: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to