Re: [Twisted-Python] custom FTP server is blocking

2015-03-20 Thread Paul Wiseman
On 20 March 2015 at 12:19, Adi Roiban wrote: > On 20 March 2015 at 11:16, Paul Wiseman wrote: >> On 19 March 2015 at 20:38, Louis D. Burr wrote: >>> Hi Paul, >>> On Mar 19, 2015, at 1:18 PM, Paul Wiseman wrote: >> I want to stream the http request back to the client connected over >>

Re: [Twisted-Python] custom FTP server is blocking

2015-03-20 Thread Adi Roiban
On 20 March 2015 at 11:16, Paul Wiseman wrote: > On 19 March 2015 at 20:38, Louis D. Burr wrote: >> Hi Paul, >> >>> On Mar 19, 2015, at 1:18 PM, Paul Wiseman wrote: >>> > I want to stream the http request back to the client connected over > FTP. I guess I could do that with io.BytesIO right? I c

Re: [Twisted-Python] custom FTP server is blocking

2015-03-20 Thread Paul Wiseman
On 19 March 2015 at 20:38, Louis D. Burr wrote: > Hi Paul, > >> On Mar 19, 2015, at 1:18 PM, Paul Wiseman wrote: >> >> I have some blocking going on in a custom twisted ftp server and I'm >> trying to pin point what exactly is doing it. >> >> I think this line in openForReading on my FTPShell obj

Re: [Twisted-Python] custom FTP server is blocking

2015-03-19 Thread Louis D. Burr
Hi Paul, > On Mar 19, 2015, at 1:18 PM, Paul Wiseman wrote: > > I have some blocking going on in a custom twisted ftp server and I'm > trying to pin point what exactly is doing it. > > I think this line in openForReading on my FTPShell object could be the > culprit: > > _FileReader(urllib2.ur

[Twisted-Python] custom FTP server is blocking

2015-03-19 Thread Paul Wiseman
I have some blocking going on in a custom twisted ftp server and I'm trying to pin point what exactly is doing it. I think this line in openForReading on my FTPShell object could be the culprit: _FileReader(urllib2.urlopen(result.link,timeout=settings.GLOBAL_TIMEOUT)) (_FileReader is twisted.pro