[Medusa-dev] medusa-0.5.2 has critical Bug.

̵ leslie@linuxkorea.co.kr
Sat, 13 Jul 2002 07:06:54 +0900


When I send a packet larger than buffer size, 
your module DON'T SEND trailing packet!
(This bug appear in HTTP Server, XML-RPC Server).


medusa-0.5.2/procuder.py.
====================================
class composite_producer:
    "combine a fifo of producers into one"
    def __init__ (self, producers):
        self.producers = producers

    def more (self):
        while len(self.producers):
<          p = self.procuders.pop(0)        
---
>          p = self.producers[0]
            d = p.more()
            if d:
                return d
            else:
<              self.producers.pop()
---
>              self.producers.pop(0)
        else:
            return ''
====================================

Enjoy Python!!