Re: [Twisted-Python] Stdout from child of ProcessProtocol not propogating

2016-01-14 Thread David Bolen
"Jim Carroll" writes: > After you get the CMD.exe prompt, try to launch python. This is what you'll > > see: > > > > Microsoft Windows [Version 6.3.9600] > > (c) 2013 Microsoft Corporation. All rights reserved. > > > > C:\Temp>python > > python > > > > > > That's it. Hitt

Re: [Twisted-Python] FTP without the protocol

2013-10-25 Thread David Bolen
Lloyd Carothers writes: > This looks pretty close to what I need and definitely a good starting > point for me. I can make use of session specific information too, > which will be nice. > As you've been using it for a while, have you had any issues. Is it > robust/stable? Absolutely robust/stabl

Re: [Twisted-Python] FTP without the protocol

2013-10-23 Thread David Bolen
Lloyd Carothers writes: > For such a use case I'm surprised not to find an example. I think I > just need a push in the right direction. Is producers/consumers the > right approach? It's a bit dated at this point, but maybe this might spark some ideas: http://twistedmatrix.com/pipermail/twis

Re: [Twisted-Python] Twisted HTTP client supporting failover for multiple A records?

2010-07-15 Thread David Bolen
Luke Marsden writes: > We're actually using it to provide redundancy in this instance. In our > application any request for any site can be made to any (live) server, > so having dead servers in the pool of A records doesn't matter so long > as real web browsers failover to some other A record wi

Re: [Twisted-Python] Uploading multiple files using ftpclient in Twisted

2010-07-10 Thread David Bolen
Jaepyoung Kim writes: > The current script is uploading using ftplib and it takes time about 1 hour. > I want to change this script to use twisted asynchronous function. > I thought if I use asynchronous function in twisted like following, > then file uploading will be executed in parallel. > But

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-22 Thread David Bolen
Gabriele Lanaro writes: > The problem of this approach is that this blocks my GUI, I can't figure out > why because I'm just generating deffereds so it souldn't block. Just using deferreds won't help unless you still manage to return control back up the chain to the main event loop. I suspect s

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread David Bolen
Darren Govoni writes: > I spoke too fast. But pardon my noobiness. > > Ok, so I am using a simple protocol that is listening on a TCP port. > > One the client side, I write 4096 bytes using > self.transport.write(bytes) > > on dataReceived side, I get only 1448. Quite possible, and even likely

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-10 Thread David Bolen
Darren Govoni writes: >>From what I learned in other posts, the dataReceived(self, data): in the > Echo server > will get called with out-of-order data/bytes from the client. Of course, > I could be misinformed, > but what I understood before was that in this type of Protocol, I would > have to r

Re: [Twisted-Python] Timeout with pb callRemote

2010-01-18 Thread David Bolen
Allen Bierbaum writes: > I just tracked down a bug in one of our servers that uses twisted PB. > The long and short of it was that the server made remote calls to > clients that connected in and in some cases those clients would fall > off the network (disconnected network cable, etc) but the ser

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread David Bolen
Žiga Seilnacht writes: > It is possible to daemonize a process on Windows. I experimented with > adding that support to the twistd script, but got swamped with other > work and couldn't finish it. Below is the code that I have so far. You > can save it in a module and call the daemonize() func

Re: [Twisted-Python] PyObjC and Twisted command line script

2009-11-01 Thread David Bolen
Jonathan Stoppani writes: > Hi Ronald, > thanks for the response. I already saw the examples on the pyobjc > website, but they (two) are all using Cocoa to do some GUI related > work. > > I don't have a gui and I use the console loop instead. > > I'm now trying to use the code attached to this ti

Re: [Twisted-Python] Logging to both console and file (using twisted logging API)?

2009-10-30 Thread David Bolen
naman jain writes: > I wanted to log in a file and keep the console also going with it. I can read this as either: * Keep file logs and stdout/console completely separate, or * File gets explicit logs and copies of stdout, but stdout also goes to console as well. The latter is somethin

Re: [Twisted-Python] Cancel/stop Deferred() at any time

2009-07-14 Thread David Bolen
vit...@synapticvision.com writes: > "cancel" callback - stop running now what you've been asked to exec. > Example: some SQL query that takes 5 min and I need to cancel it > anywhere in the middle and it, of course, it doesn't matter what the > result set. Note that the Deferred itself has no

Re: [Twisted-Python] AsyncQueue is still unavailable

2009-06-19 Thread David Bolen
mardiros writes: > I am looking in Storm for the moment. > I have copy the driver in the twisted-integration, > but it tries with the both driver pymssql and adodbapi, > and i think only the mxodbc worked. > > Now i execute deferred query  with a modified one, > and it work's fine. > > I will try

[Twisted-Python] Re: strange server crash

2009-03-23 Thread David Bolen
"Alec Matusis" writes: > I have tested for bad RAM when the server was installed 3 month ago, > I did a memtest that run for a day. This is an 8 core server, and I > run one twistd process per core, and surprisingly, only one crashed > out of 8. Would you think that the effect of bad RAM would b

[Twisted-Python] Re: So how does everyone use an ORM in twisted?

2009-03-17 Thread David Bolen
Stephen Waterbury writes: > This is a good point -- although the attractive part of using an > ORM in the first place is somewhat OT here, the main attraction > for me is usually *DRY* rather than "automatic persistence", so for > my purposes such "magical" features as direct attribute access, >

[Twisted-Python] Re: So how does everyone use an ORM in twisted?

2009-03-17 Thread David Bolen
Don Dwiggins writes: > So if someone wanted the use of the ORM, would you say that they > should access the objects through deferreds, just as they would with > SQL? Or is it worse than that? If by deferreds you mean pushing the ORM operation (including all possible ancillary object loading) in

[Twisted-Python] Re: So how does everyone use an ORM in twisted?

2009-03-17 Thread David Bolen
"Maciej Szumocki" writes: > I'm using SQLAlchemy with Twisted in a large project without > problems. Why would you think you cannot? You just need to run SA > operations in non-reactor threads (i currently use my own threadpool > and deferToThread but it's only slightly modified standard twiste

[Twisted-Python] Re: Noob Question

2009-03-14 Thread David Bolen
Shelby Ramsey writes: > The events have a Content-Length: \d+ as the protocol for determining the > length of the message. What I'm struggling with is how to parse that and > then receive just that length as an individual message ... It would probably help to see the general framework of your s