refer to http://sebulbasvn.googlecode.com/svn/tags/rpyc/2.60/Connection.py
<http://sebulbasvn.googlecode.com/svn/tags/rpyc/2.60/Connection.py>
An NCO and a Gentleman


On Wed, Oct 13, 2010 at 22:34, tomer filiba <[email protected]> wrote:

> you can override/monkeypatch the Connection class's serve() method, with
> something like
>
> try:
>     original_serve()
> except EOFError:
>     my_on_disconnect()
>
>
> An NCO and a Gentleman
>
>
> On Wed, Oct 13, 2010 at 22:28, Amy Allen <[email protected]>wrote:
>
>> What if I'm using a pre-3 RPyC?
>> Was there any good way to do it back then?
>>
>> On 13 אוקטובר, 22:02, tomer filiba <[email protected]> wrote:
>> > it seems you want to change an existing class. you can do this by
>> deriving a
>> > SlaveService2 from SlaveService and overriding on_disconnect, or you can
>> > directly monkeypatch the instance of the existing service with a custom
>> > on_disconnect method.
>> >
>> > An NCO and a Gentleman
>> >
>> >
>> >
>> > On Wed, Oct 13, 2010 at 01:34, Amy Allen <[email protected]>
>> wrote:
>> > > What is the best way to handle disconnections in the classic rpyc, on
>> > > the server's side?
>> >
>> > > I would like to be able to run some function, let's say
>> > > 'on_disconnect', whenever one of the clients connected to me has
>> > > disconnected. How should I do that?-הסתר טקסט מצוטט-
>> >
>> > -הראה טקסט מצוטט-
>
>
>

Reply via email to