Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the never-used and misleading CMD_CLOSE.

  • Loading branch information...
commit 1907048dad40c5cd6e8b13fe093b6cdf5598b9ff 1 parent 82e1d1c
@apenwarr apenwarr authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 ssnet.py
View
8 ssnet.py
@@ -15,7 +15,7 @@
CMD_PING = 0x4201
CMD_PONG = 0x4202
CMD_CONNECT = 0x4203
-CMD_CLOSE = 0x4204
+# CMD_CLOSE = 0x4204 # never used - removed
CMD_EOF = 0x4205
CMD_DATA = 0x4206
CMD_ROUTES = 0x4207
@@ -27,7 +27,6 @@
CMD_PING: 'PING',
CMD_PONG: 'PONG',
CMD_CONNECT: 'CONNECT',
- CMD_CLOSE: 'CLOSE',
CMD_EOF: 'EOF',
CMD_DATA: 'DATA',
CMD_ROUTES: 'ROUTES',
@@ -459,10 +458,7 @@ def uread(self):
return None # no data available right now
def got_packet(self, cmd, data):
- if cmd == CMD_CLOSE:
- self.noread()
- self.nowrite()
- elif cmd == CMD_EOF:
+ if cmd == CMD_EOF:
self.noread()
elif cmd == CMD_DATA:
self.buf.append(data)
Please sign in to comment.
Something went wrong with that request. Please try again.