Skip to content
Snippets Groups Projects
Unverified Commit 57083a2c authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

master: Code style

Use a class variable where appropriate instead of overriding it in each
object.
parent 1b5dc81a
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ with database.transaction() as t: ...@@ -40,6 +40,7 @@ with database.transaction() as t:
t.execute("DELETE FROM active_plugins") t.execute("DELETE FROM active_plugins")
class ClientConn(twisted.protocols.basic.Int32StringReceiver): class ClientConn(twisted.protocols.basic.Int32StringReceiver):
MAX_LENGTH = 1024 ** 3 # A gigabyte should be enough
""" """
Connection from one client. It handles the low-level protocol, Connection from one client. It handles the low-level protocol,
sorts the messages, answers pings, times out, etc. sorts the messages, answers pings, times out, etc.
...@@ -64,7 +65,6 @@ class ClientConn(twisted.protocols.basic.Int32StringReceiver): ...@@ -64,7 +65,6 @@ class ClientConn(twisted.protocols.basic.Int32StringReceiver):
'Sniff': 1 'Sniff': 1
} }
self.__plugin_versions = {} self.__plugin_versions = {}
self.MAX_LENGTH = 1024 * 1024 * 1024 # A gigabyte should be enough
self.last_pong = time.time() self.last_pong = time.time()
self.session_id = None self.session_id = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment