To me, this is looking like an operating system bug or a bug in the Python 
socket libraries.  Perhaps it's time to escalate to comp.lang.python and 
see if anyone has seen a crash like this in other contexts?

At 06:42 PM 10/22/01 -0400, you wrote:
>Thanks to Geoff, the problem is narrowed to a crash at
>self._socket.send() call in the modified ThreadedAppServer.py:401
>code below...
>
>                         print "start loop"
>                         while sent < reslen:
>                                 try:
>                                         print "<%d>" % sent
>                                         val = self._buffer[sent:sent+8192]
>                                         print "."
>                                         cnt = self._socket.send(val)
>                                         print ","
>                                         sent = sent + cnt
>                                 except socket.error, e:
>                                         if e[0]==errno.EPIPE: #broken
>                                                 pass
>                                         else:
>                                                 print "StreamOut Error: ", e
>                                         self._socket.close()
>                                         self._socket = None
>                                         break
>                         print "end loop"
>
>And the result I get... (before it dumps me to the prompt...)
>
>     end loop
>     start loop
>     end loop
>     start loop
>     <0>
>     .
>     ,
>     <8192>
>     .
>     ,
>     <16384>
>     .
>
>So.  It reads in what to write... but when it goes to
>write to the socket self._socket.send(val) it crashes.
>
>Thoughts as to how to proceed?
>
>Clark

--

- Geoff Talvola
   [EMAIL PROTECTED]

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to