Re: [Twisted-Python] In memory cache in twisted

2019-09-26 Thread Gelin Yan
Hi I don't see any reason to use defer.inlineCallbacks in your snippet of codes. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted 19.7.0 Release Announcement

2019-08-16 Thread Gelin Yan
e enhancements today! > > Thanks for using Twisted, > > -glyph > > [1]: somewhat belatedly: it came out 10 days ago. Oops! > > https://twistedmatrix.com/trac/ticket/5562 I think the recent iocp patch might fix this bug. regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Running CPU bound function concurrently in twisted

2019-06-23 Thread Gelin Yan
Hi If your purpose is merely not to block the reactor, you can run your code in a separate thread by using deferToThread. If you want to benefit from multi cores, you may consider use https://github.com/twisted/ampoule or other similar tools. Regards gelin yan

Re: [Twisted-Python] Why deferToThread is so slow?

2016-06-03 Thread Gelin Yan
Mark You mentioned deferToThreadPool. I am curious whether the standard threadpool in multipleprocessing.dummy works with twisted. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] where can I find twisted.application.internet.ClientService?

2016-03-26 Thread Gelin Yan
On Sun, Mar 27, 2016 at 10:50 AM, Tristan Seligmann wrote: > On Sun, 27 Mar 2016 at 04:17 Gelin Yan wrote: > >> >> >> https://twistedmatrix.com/documents/16.0.0/api/twisted.application.internet.ClientService.html >> > > Unfortunately ClientService did no

[Twisted-Python] where can I find twisted.application.internet.ClientService?

2016-03-26 Thread Gelin Yan
. I want to know its availability. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted Web at 630k reqs/sec

2015-11-15 Thread Gelin Yan
On Sun, Nov 15, 2015 at 8:25 PM, Gelin Yan wrote: > > 2015年11月15日 下午6:09,"Tobias Oberstein" 写道: > >> > > What's required for high-performance on Windows is the Twisted IOCP > reactor. For Python 2 that works quite well. For Python 3 some bits are > mis

Re: [Twisted-Python] Twisted Web at 630k reqs/sec

2015-11-15 Thread Gelin Yan
x27;t make any sense for that. regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted Web at 630k reqs/sec

2015-11-11 Thread Gelin Yan
>>> >>> Hi Tobias Have you tried to test crossbar on windows? I heard that stdio performs very bad on windows. I noticed crossbar use pipe to transfer data between process. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-12 Thread Gelin Yan
t; We've been very satisfied with how MongoDB has performed (post 3.0/WT) > along with TxMongo and Twisted. > > Cheers, > Bret > > I have switched from pymongo to txmongo for about two months. I got at least 2x faster on query. Despite of

Re: [Twisted-Python] error on log module (twisted python 3)

2015-09-08 Thread Gelin Yan
On Tue, Sep 8, 2015 at 3:16 PM, Glyph wrote: > > > On Sep 7, 2015, at 11:48 PM, Gelin Yan wrote: > > Hi All > > I just noticed my app raised an exception such as > > Traceback (most recent call last): > > File "/home/m/py343/lib/python3.4/runpy.p

[Twisted-Python] error on log module (twisted python 3)

2015-09-07 Thread Gelin Yan
lf) File "/home/m/py343/lib/python3.4/site-packages/twisted/python/logfile.py", line 75, in _openFile self._file = file(self.path, "w+", 1) NameError: name 'file' is not defined I used python 3.4 and twisted 15.40 (from pip) under ubuntu 14.04.

Re: [Twisted-Python] An error occurred with twisted 15.2.1 & python 3.4.3 on windows

2015-07-28 Thread Gelin Yan
On Tue, Jul 28, 2015 at 3:46 PM, Tristan Seligmann wrote: > On Mon, 27 Jul 2015 at 13:18 Gelin Yan wrote: > >> Is it a bug? >> > > Yes; see https://twistedmatrix.com/trac/ticket/7626 for more details. > > ___ > Twis

[Twisted-Python] An error occurred with twisted 15.2.1 & python 3.4.3 on windows

2015-07-27 Thread Gelin Yan
n = open can run the program. Is it a bug? Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] New Supported Platforms - Python 3.3 and Python 3.4 on Debian 7

2015-05-07 Thread Gelin Yan
; to 'supported'. > > - Hawkie > > > > > Hi HawkOwl May I know what level does twisted support for python 3? I am interested in porting my system to python 3. To be frank, Twisted is the main reason I am staying with python 2.x. Regards gelin yan __

Re: [Twisted-Python] twisted and twisted-infra organizations on GitHub

2015-04-29 Thread Gelin Yan
On Mon, Apr 27, 2015 at 3:22 PM, bret curtis wrote: > > > On Fri, Apr 24, 2015 at 10:54 AM, Gelin Yan wrote: >> >> Hi Glyph >> >> off-topic a bit. I care about txmongo. I actually plan to use it in >> production soon. >> >> Regards &g

Re: [Twisted-Python] twisted and twisted-infra organizations on GitHub

2015-04-24 Thread Gelin Yan
> > -glyph > > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > Hi Glyph off-topic a bit. I care about txmongo. I actually pla

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-01-31 Thread Gelin Yan
On Tue, Dec 30, 2014 at 5:50 PM, bret curtis wrote: > On Tue, Dec 23, 2014 at 7:51 AM, Gelin Yan wrote: > >> >> >> On Mon, Dec 22, 2014 at 5:05 AM, Clayton Daley >> wrote: >> >>> Are there any major disadvantages of using pymongo with callInThr

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-22 Thread Gelin Yan
asier > to maintain feature parity using callInThread. > > Clayton Daley > > > Hi Clayton Txmongo has been inactive for a while so I suggest using pymongo & twisted thread pool. I have been using them for a couple of years and

Re: [Twisted-Python] Strange DataLoosing Problem after some time of connection

2013-11-06 Thread Gelin Yan
client, the server recognizes a disconnect, but before, no > disconnect is recognized. > Has anyone of you an idea or does anyone see a mistake in the design of my > Factory or Protocol? > Are there known problems with the combination of python twisted and > WinSocket of Windows?

Re: [Twisted-Python] any progress for Ticket #6346, #6378?

2013-05-29 Thread Gelin Yan
on import _epoll > > > From: twisted-python-boun...@twistedmatrix.com > [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of Gelin Yan > Sent: Tuesday, May 28, 2013 9:09 PM > To: Twisted general discussion > Subject: Re: [Twisted-Python] any progress for Ticket #6346,

Re: [Twisted-Python] any progress for Ticket #6346, #6378?

2013-05-28 Thread Gelin Yan
ckets. > > -Itamar > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > Hi Itamar I will give it a try without guarantee due to I am not qu

Re: [Twisted-Python] any progress for Ticket #6346, #6378?

2013-05-28 Thread Gelin Yan
tion where it happens > infrequently is actually Twisted 10.2 with python 2.7.3 (not Twisted 10.1 > as > I wrote). > How can I check whether twisted is using Python’s epoll or its own in this > combination? And how can I switch between epoll implementations in my app? > &g

Re: [Twisted-Python] any progress for Ticket #6346, #6378?

2013-05-25 Thread Gelin Yan
works, please take a look > at this wiki page: > > http://twistedmatrix.com/trac/wiki/ReviewProcess > > Jean-Paul > > By reading these comments, It looks like recent version of twisted > >may > >suffer from this pro

[Twisted-Python] any progress for Ticket #6346, #6378?

2013-05-24 Thread Gelin Yan
use the latest version on windows. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Speed of twisted on Amazon EC2

2013-04-21 Thread Gelin Yan
hon mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > Hi I suggest trying pypy. python actually is quite slow with lots of function calls. I did have a benchmark for cyclone & pypy. it is almost 3 times faster. twisted can work with pypy well so you definitely should give it a try. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-18 Thread Gelin Yan
ython mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > Hi inlineCallbacks is ok to me. I use it daily. I can keep code snippets succinct. no more callbacks, deep nested callbacks (they let me recall those days with javascript & nod

Re: [Twisted-Python] Epoll error after upgrading from 10.0 to 12.3

2013-03-02 Thread Gelin Yan
; > Is there a patch available, or should I roll back to 10.0.0? > > > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > Hi All I re

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Gelin Yan
wistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > Hi All It looks like a serious bug, what is the work around besides of checking stuck state regularly?. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] combine local and remote calls in perspective brokers

2013-02-25 Thread Gelin Yan
On Mon, Feb 25, 2013 at 5:15 PM, Sergey Gerasimov wrote: > ** ** > > ** ** > > *From:* Itamar Turner-Trauring [mailto:ita...@futurefoundries.com] > *Sent:* Monday, February 25, 2013 4:38 AM > *To:* ser...@gmail.com; Twisted general discussion > *Subject:* Re: [Twisted-Python] combine local and re

Re: [Twisted-Python] Is Ampoule still maintained?

2012-11-20 Thread gelin yan
m/cgi-bin/mailman/listinfo/twisted-python > > Hi Ampoule is a very good tool for parallel computing, The only drawback I found is cx_freeze can't support it. I personally hope this "own simplified process pool" eventually can work with cx_freeze flawlessly. Rega

Re: [Twisted-Python] a question about monotonic clock

2012-10-29 Thread gelin yan
g of urgent need for every Twisted-using > program that needs to schedule timed events. > -- > mithrandi, i Ainil en-Balandor, a faer Ambar > > _______ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twist

Re: [Twisted-Python] a question about monotonic clock

2012-10-29 Thread gelin yan
for >> problems related to #2424 to ever come up on a properly maintained >> server. >> >> > I think that for *certain* uncommon types of applications, even the very > minor skewing of ntp can cause problems, but I wonder if gelin yan has > encountered real

Re: [Twisted-Python] a question about monotonic clock

2012-10-28 Thread gelin yan
d-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python Hi Jean-Paul Thanks for your answer. It is much clearer from now. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] a question about monotonic clock

2012-10-27 Thread gelin yan
ocess, sync the time manually and then restart the process. The latter way is hard to be accepted due to we have many machines. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/lis

[Twisted-Python] Is it a typo in abstract.py ?

2012-10-26 Thread gelin yan
o for self.stopWriting()? Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread gelin yan
On Thu, Oct 25, 2012 at 1:03 PM, Glyph wrote: > > On Oct 24, 2012, at 8:48 PM, gelin yan wrote: > > I attach a modified abstract.py here. You may put it in > Path\twisted\internet\iocpreactor > and give it a try. > > > Hi Gelin, > > Can you generate and att

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread gelin yan
On Mon, Oct 22, 2012 at 12:06 PM, Glyph wrote: > > On Oct 20, 2012, at 7:56 PM, gelin yan wrote: > > "A pending operation is indicated when the function that started the > operation returns *FALSE*, and the > *GetLastError*<http://msdn.microsoft.com/en-us/library/win

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread gelin yan
sign the mechanism > to wire up event-source to fire the deferred and make doWrite be the > callback. > > > > On Oct 20, 2012, at 8:29:10AM, gelin yan wrote: > > > >> Hi All > >> > >> A few months ago, I reported a bug about IOCP. Last night I spent &

[Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread gelin yan
ass. Maybe the better solution is to find a way to poll the complete port status when read/write will be recovered from IO PENDING. Simply wait a little is risky. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com h

Re: [Twisted-Python] Consensus on how to handle "MySQL server has gone away"

2012-10-03 Thread gelin yan
pwards unchanged (maybe > wrapped, maybe not) > > cp_reconnect should be the default. > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-27 Thread gelin yan
on > Hi Actually, you can use VS 2010 with python but you need to modify sth. deploying python app (not only with twisted) on windows is troublesome. Sometimes, I have to manually download .msi files and execute it order by order. I am sure that 99% of windows servers don't have a working compiler no matter it is "free" or not. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted in a multicore environment

2012-07-15 Thread gelin yan
On Sun, Jul 15, 2012 at 1:38 AM, Werner Thie wrote: > On 7/14/12 12:39 AM, gelin yan wrote: > > > > > > On Wed, Jul 11, 2012 at 2:08 AM, Werner Thie > <mailto:wer...@thieprojects.ch>> wrote: > > > > On 7/10/12 6:17 AM, Laurens Van Houtven wr

Re: [Twisted-Python] Twisted in a multicore environment

2012-07-14 Thread gelin yan
>>> Augusto Mecking Caringi > We observed really great scaling on multi cores with moving the > application part either to ampoule for PDF production or in the other > case I wrote an implementation of self regulating process pool based on > spread, leaving only the servin

Re: [Twisted-Python] Catching error in protocol.ReconnectingClientFactory

2012-06-25 Thread gelin yan
have an errback handler attached to it. If you don't want to see anything > out of them, simply don't print anything. > > > >> ___ > >> Twisted-Python mailing list > >> Twisted-Python@twistedmatrix.com >

Re: [Twisted-Python] Python 3 support in Twisted: Request for relaxation of coverage requirements

2012-06-19 Thread gelin yan
/twisted-python > Sigh too, I am still using 2.6.6 & twisted 11.0; however I think it is not so difficult to migrate to 2.7. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Catching error in protocol.ReconnectingClientFactory

2012-06-14 Thread gelin yan
On Thu, Jun 14, 2012 at 7:38 PM, Martin wrote: > Hi, thanks for your reply. > > Indeed, the ReconnectingClientFactory is being sent the Failure object to > > def clientConnectionLost(self, connector, reason): > log.msg('Lost connection. Reason: %s' % reason) > protocol.Reconnecti

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-17 Thread gelin yan
-python > > > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > Hi Andrew What is the advantage of using stackless with twisted? Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] (no subject)

2012-05-02 Thread gelin yan
On Thu, May 3, 2012 at 3:22 AM, Itamar Turner-Trauring wrote: > On 05/02/2012 02:57 PM, Glyph wrote: > > On May 2, 2012, at 12:37 AM, Itamar Turner-Trauring wrote: > > a bunch of serious bugs > > > Can you be more specific? Let's not spread vague FUD about ourselves :). > > I suspect you're mo

Re: [Twisted-Python] CPU usage.

2012-04-27 Thread gelin yan
d-python > > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > Hi you may look at http://docs.python.org/library/profile.html for some details. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-19 Thread gelin yan
On Tue, Apr 10, 2012 at 1:32 PM, Glyph Lefkowitz wrote: > > On Apr 9, 2012, at 9:50 PM, Andrew Bennetts wrote: > > > On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote: > > […] > >>When trying to run inlineCallbacks with Cython, a TypeEr

Re: [Twisted-Python] Twisted gets a logo on the DreamHost Github page :-)

2012-04-13 Thread gelin yan
On Fri, Apr 13, 2012 at 9:48 PM, Duncan McGreggor < duncan.mcgreg...@gmail.com> wrote: > On Fri, Apr 6, 2012 at 2:41 AM, gelin yan wrote: > > > > > > On Thu, Apr 5, 2012 at 9:34 PM, Duncan McGreggor > > wrote: > >> > >> Just thought I'

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread gelin yan
On Tue, Apr 10, 2012 at 12:50 PM, Andrew Bennetts wrote: > On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote: > […] > > When trying to run inlineCallbacks with Cython, a TypeError would > come > > out like: > > > > TypeError: inlineCallbacks req

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread gelin yan
On Tue, Apr 10, 2012 at 4:01 AM, Glyph Lefkowitz wrote: > On Apr 9, 2012, at 3:05 AM, gelin yan wrote: > > I personally hope deferredGenerator will be always there even python 2.4 > support has been abandoned. deferredGenerator itself is not so elegant as > inlineCallbacks, at lea

[Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread gelin yan
s inlineCallbacks, at least I don't need to struggle with a series of callback functions.. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted gets a logo on the DreamHost Github page :-)

2012-04-05 Thread gelin yan
> Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > glad to know that cool thing... Is it possible to leak out more detail? how these people use twisted? Thanks gelin yan __

[Twisted-Python] when will failure.Failure() be a problem?

2012-03-22 Thread gelin yan
crash or data corruption with Failure. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] a weird problem about IOCP reactor and perspective broker

2012-03-16 Thread gelin yan
On Fri, Mar 16, 2012 at 12:25 AM, wrote: > On 06:33 am, dynami...@gmail.com wrote: > >On Wed, Mar 14, 2012 at 10:04 PM, gelin yan > >wrote: > >>Hi all > >> > >> I attach two files for this problem. When i used iocp reactor with > >>

Re: [Twisted-Python] Twisted Log Efficiency is poor?

2012-03-15 Thread gelin yan
d-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > Hi...If you log chunks data at once,, it definitely will chock your reactor. I suggest split your data and log by using cooperate. Regards gelin yan __

Re: [Twisted-Python] a weird problem about IOCP reactor and perspective broker

2012-03-14 Thread gelin yan
On Wed, Mar 14, 2012 at 10:04 PM, gelin yan wrote: > Hi all > > I attach two files for this problem. When i used iocp reactor with pb, > I noticed once the remote method returned a deferred object, the client app > would raise many exceptions..kinda weird. > > It is o

[Twisted-Python] a weird problem about IOCP reactor and perspective broker

2012-03-14 Thread gelin yan
select reactor, everything was fine..I am not sure whether it is a bug on IOCP. OS: windows 7 64 bit py: 2.6.6 32bit twisted version: 12.0.0 Regards gelin yan pb_bugs_client.py Description: Binary data pb_bugs_server.py Description: Binary data

Re: [Twisted-Python] ampoule & cx_Freeze

2012-03-08 Thread gelin yan
On Fri, Mar 9, 2012 at 2:00 AM, Corbin Simpson wrote: > Off the top of my head, multiprocessing.freeze_support() might help. I > wonder if dialtone is on this list, he might know more. > > ~ C. > > On Thu, Mar 8, 2012 at 11:36 PM, gelin yan wrote: > > Hi All > > &

[Twisted-Python] ampoule & cx_Freeze

2012-03-08 Thread gelin yan
27; object has no attribute __file__. I guess once the main file is tuned into the executable one, __file__ will be removed. It looks like ampoule need this attribute. Any idea? Thanks gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedm

Re: [Twisted-Python] accurate periodic call

2012-02-19 Thread gelin yan
On Mon, Feb 20, 2012 at 12:14 PM, Itamar Turner-Trauring < ita...@itamarst.org> wrote: > On 02/19/2012 11:49 AM, Zoran Bošnjak wrote: > > Hello all, > > I was astonished to find out that looping call period depends on the > system time by default. The periodic tick can even stall for a long time,

Re: [Twisted-Python] libusb-1 file descriptors

2012-02-12 Thread gelin yan
On Sun, Feb 12, 2012 at 7:10 PM, Phil Mayers wrote: > On 02/12/2012 04:13 AM, Donal McMullan wrote: > > I'm trying to integrate Twisted with libusb-1 > > > > The libusb-1 Python wrapper offers a USBPoller class to "allow > > integration of USB event polling in a file-descriptor monitoring event >

Re: [Twisted-Python] How to Connect a IPv6 server through Twisted

2012-01-29 Thread gelin yan
On Sun, Jan 29, 2012 at 9:48 AM, Peng Xiao -X (penxiao - Digital China at Cisco) wrote: > Hi experts > > ** ** > > I want to establish a connection between my twisted client and an IPv6 > server, how can I achieve that? > > Which version of Twisted should I use? > > ** ** > > I know

Re: [Twisted-Python] Python multiprocessing and Twisted stopService - success story

2012-01-22 Thread gelin yan
Hi Tom Does it work for windows? I use ampoule instead to manage multiple process. Regards gelin yan On Sat, Jan 21, 2012 at 12:09 AM, Nicolas Toper wrote: > Hi Tom, > > How do you pass data between the parent and its children with > multiprocessing? It worked fine with Twis

Re: [Twisted-Python] Does anyone use ampoule in production?

2011-11-21 Thread gelin yan
. thanks gelin yan On Mon, Nov 21, 2011 at 4:39 PM, Corbin Simpson wrote: > On Sun, Nov 20, 2011 at 11:40 PM, gelin yan wrote: > > Hi glyph > > I attached a file for this purpose. there is a number 4073 inside > the > > code. when i use any smaller value, the f

Re: [Twisted-Python] Twisted on PyPy

2011-11-21 Thread gelin yan
If pypy doesn't work well with cython, it implies we can't use iocp for that. On Mon, Nov 21, 2011 at 6:57 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > I tried once, and then I submitted a ticket, because a Cython extension > was preventing a complete install. >

Re: [Twisted-Python] Does anyone use ampoule in production?

2011-11-21 Thread gelin yan
help. Regards gelin yan On Mon, Nov 21, 2011 at 7:02 PM, Žiga Seilnacht wrote: > On 21.11.2011 8:40, gelin yan wrote: > > Hi glyph > > > > I attached a file for this purpose. there is a number 4073 inside > the > > code. when i use any smaller value, the func

Re: [Twisted-Python] Does anyone use ampoule in production?

2011-11-20 Thread gelin yan
Hi glyph I attached a file for this purpose. there is a number 4073 inside the code. when i use any smaller value, the function return a correct result. I use win 7 & twisted 11.1 at the moment. I am not sure whether this limit comes from os or not. thanks gelin yan On Mon, Nov 21,

Re: [Twisted-Python] Does anyone use ampoule in production?

2011-11-20 Thread gelin yan
Hi Romanoff Have you suffered from transfer large size of data to child process? I encountered a problem: it seems i am unable to send any chunks of data larger than 4000 bytes. I guess there is a limit. On Sat, Nov 19, 2011 at 3:58 AM, Romanoff Alexei wrote: > 2011/11/18 gelin

[Twisted-Python] Does anyone use ampoule in production?

2011-11-18 Thread gelin yan
looks like quite serious for example: a bug mentioned occasionally, startWorker may generate double process until the system hanging. If those bugs still exist, i am gonna try to fix some of them if it is impossible. Regards GELIN YAN ___ Twisted-Python

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-14 Thread gelin yan
placing in Github is almost a must for attracting developers... At least, it is easy to check the codes... On Mon, Nov 14, 2011 at 4:43 PM, Tobias Oberstein < tobias.oberst...@tavendo.de> wrote: > > But the whole point of having a Git mirror (and a presence on Github, > which I think is the next

Re: [Twisted-Python] Limitations & future extension of twisted

2011-11-02 Thread gelin yan
Hi all I want to know which version of twisted will be supposed to support IPv6... Thanks On Tue, Nov 1, 2011 at 7:41 PM, Phil Mayers wrote: > On 01/11/11 11:34, nivedita datta wrote: > > Hi all, > > > > I have to give a talk on twisted. Can anyone let me know about the > > limitations of tw

Re: [Twisted-Python] Anyone interested in being release manager for 11.1?

2011-10-18 Thread gelin yan
any tutorial for how to be a release manager? On Tue, Oct 18, 2011 at 3:35 AM, Itamar Turner-Trauring wrote: > Twisted is basically at a point where a new version can be released... > given a release manager. I'm told it's pretty automated and only takes 45 > minutes or so these days. > > Any vo

Re: [Twisted-Python] question : Twistar

2011-07-15 Thread gelin yan
hi... you can try to use host to indicate which server you want to connect with.. like: adbapi.ConnectionPool('xxx', host='localhost', user='twww',pwd='eee') On Wed, Jul 13, 2011 at 9:08 AM, bino oetomo wrote: > Dear All .. > > Base on a need, I need to build a JSON-RPC to Postgres "bridge"

[Twisted-Python] how to implement a perspective broker client with reconnection

2011-07-14 Thread gelin yan
and I didn't find any hint from source code. Thanks gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Does twisted have plan to support python 3.x?

2011-06-29 Thread gelin yan
. Other solutions like gevent, eventlet or etc usually are unable to run on windows. Regards gelin yan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Is it possible to know what kind of methods are thread safe?

2011-05-15 Thread gelin yan
? Or I use reacator.callFromThread for all related methods from threads other than reactor thread? Thanks dfgqq (gelin yan) ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python