Author: bkuhn
Date: Sun Sep 7 22:58:13 2008
New Revision: 4410
URL: http://svn.gna.org/viewcvs/pokersource?rev=4410&view=rev
Log:
[EMAIL PROTECTED]: bkuhn | 2008-09-07 16:54:48 -0400
Final implementation to address the "server reduce backlog" problem. Per
discussions with Loic, we have decided to control the possible problem by
having a maximum, that is set via the config file (see r4409). We hereby
complete the feature with the following changes:
* PokerAvatar now, each time it queues a packet for the client, checks
to see if the the queued packet max has been reached or is close. If
it is close, a warning is printed. If it surpassed, a new service
method called forceAvatarDestroy() is called.
* PokerService's forceAvatarDestroy() uses the reactor to schedule a
forced disconnect of that particular avatar one second later.
* A new test in tests/test-pokeravatar.py.in that covers these changes
are added.
For a full discussion of this feature, see:
http://pokersource.info/developers/specifications/earthquake.html#%5B%5Bserver%20reduce%20backlog%5D%5D
Modified:
trunk/ (props changed)
trunk/poker-network/ChangeLog
trunk/poker-network/pokernetwork/pokeravatar.py
trunk/poker-network/pokernetwork/pokerservice.py
trunk/poker-network/tests/test-pokeravatar.py.in
_______________________________________________
Pokersource-commits mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-commits