Consumer asked us to stop producing

[email protected] Tue, 08 Sep 2009 11:27:22 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from vinyguitar <None>:

Hi guys!
I'm trying create a file server, where 1 server is connected for 3 clients. There is a stack of files, they're going to send for the clients. The problem is only 5kbs of files are sended for the clients

 def dataReceived(self, data):        
                                    
        if data.find("!SF") != -1:            
            global work_queue, files_in_queue
            
            if not work_queue.empty():
                file_path = work_queue.get_nowait()
                if os.path.isfile(file_path):
                    self.file = open(file_path, "rb")                                
                    self.beginFileTransfer(self.file, self.transport)         
                    files_in_queue.pop(files_in_queue.index(file_path))                      
            else:
                self.transport.write("!QE")

----------
Type     : enhancement
Component: core
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4011