Commit graph

53 commits

Author SHA1 Message Date
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
33e1d03077 Remove portal debug printout. 2017-01-29 14:32:07 +01:00
Griatch
c6d9c0619e Refactor code for readability and compatibility. 2017-01-27 00:19:27 +01:00
Griatch
4699b38b31 Fix issue with option ansi/xterm256=False not correctly turning off colors. Change the NOMARKUP session option flag to NOCOLOR to better reflect its function. 2017-01-26 21:08:27 +01:00
Tehom
b41053dd38 Default value for MAX_CHAR_LIMIT and convert to int to catch early errors 2016-12-13 07:22:50 -05:00
Tehom
760c5b41fc Put in check for maximum character size in input strings that can be set with settings.MAX_CHAR_LIMIT. 2016-12-13 06:53:35 -05:00
Greg Taylor
4424dec668 Remove broken and un-maintained IMC2 support.
As discussed with @Griatch, IMC2 is now rarely seen in the wild. Also, this
feature hasn't worked in ages. Time to de-clutter.
2016-10-28 22:53:43 -07:00
Griatch
4a97a05c10 Some minor fixes and cleanups. 2016-09-14 23:27:55 +02:00
Griatch
76a903119c Clean up log file output and fix some bugs. Swallows spammy and useless AMP connection errors. 2016-09-13 23:10:51 +02:00
Griatch
86c970eb62 Add sessionhandler.portal_disconnect_all to remove another needless call between server and portal on logout. This means logout from either side will clean up on the respective side and then inform the other side once, rather than triggering a return call. 2016-09-13 21:48:43 +02:00
Griatch
8eb500f8e0 Add sessionhandler.portal_disconnect which cuts down interaction over AMP by one when a player disconnects. 2016-09-13 20:42:38 +02:00
Griatch
410d04456c Some further fixes to the ajax client, as well as maybe fixing the i.d.l. bug manifesting from a poor msg input send. 2016-06-01 01:22:20 +02:00
Griatch
eebd41f46d Getting an improved version of the shared session system vaguely in shape. 2016-06-01 01:22:20 +02:00
Griatch
f3512971e3 Created setter inputfuncs for the basic GMCP handhakes. Also added
the possibility for the Server to sync a single Session with the
Portal.
2016-05-22 20:45:40 +02:00
Griatch
83e24678f5 Fixed a bug which caused a failure when logging out 2016-05-22 20:45:38 +02:00
Griatch
006e367330 Made GMCP/MSDP work for tintin++. Mudlet seems to send the handshake differently. 2016-05-22 20:45:38 +02:00
Griatch
d48691e121 Got the initial connect screen to display in webclient again. 2016-05-22 20:45:06 +02:00
Griatch
1044006303 Moved inlinefunc-parsing to sessionhandler level. First text throughput for webclient alongside telnet. 2016-05-22 20:45:05 +02:00
Griatch
2890371900 Still messing with getting the webclient to talk properly to the server. 2016-05-22 20:45:05 +02:00
Griatch
c511263f63 Made basic telnet work again. 2016-05-22 20:45:05 +02:00
Griatch
96ace8c75f Starting to clean up and debug the server-side infrastructure 2016-05-22 20:45:05 +02:00
Griatch
e4d50ff74e Changes to the input-handling interface, to support function calls; also changing oob system to be inputhandler system, making it all work in the same way (no separation between text and oob anymore). 2016-05-22 20:45:05 +02:00
Griatch
7ad1229a7b Started refactor the webclient to use new system server-side. Renamed webclient.py to webclient_ajax.py and websocket_client.py to simpy webclient.py, since websocket is the standard now. 2016-05-22 20:45:05 +02:00
Griatch
4817ec90b3 Changed the OOB message structure to include sending text data as well; still not working fully. 2016-05-22 20:45:05 +02:00
Griatch
418e6d953a Fixed an issue where the IDLE_TIMEOUT was triggered even though one had been active in the interval. 2016-01-27 21:21:37 +01:00
Griatch
efefe3e5ff First version of changed sessid->session change that starts properly. Not fully tested yet. 2015-11-14 21:43:58 +01:00
Griatch
d496606a3c Further development of the reworking of systems using Sessions rather than session id. 2015-11-14 20:32:58 +01:00
Griatch
556a0cc332 Made sessionhandlers inherit directly from dicts. 2015-11-13 22:34:23 +01:00
Ahmed Charles
cbe1eefcf0 Move to python3 style division.
All of these are currently integer division in python2.
2015-11-01 20:47:18 +00:00
Griatch
c7e1a6a086 Resolved merge conflicts against master. 2015-10-20 00:07:39 +02:00
Ahmed Charles
bc340fbf0d Remove commented out print statements. 2015-10-19 23:31:19 +02:00
Griatch
b952a290b5 Fixed conflicts against master. 2015-10-18 12:43:43 +02:00
Griatch
1348fae5a0 Reworked the flow of the data property through AMP to fix inconsistencies and make some overall cleanup of the arguments used to send AMP messages. Resolves #815. 2015-10-11 18:49:38 +02:00
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00
Griatch
d553c46ba5 Implemented a more robust DoS mechanism for commands. A large number of concurrent players can now send data to the server without general slowdown, the prize to pay for not overwhelming the server is that when load is high you will occationally get an error and asked to enter your command again. 2015-09-21 16:49:44 +02:00
Griatch
4109c86545 Modified connection DoS limiter. 2015-09-20 20:01:52 +02:00
Griatch
d02b781be1 Time tracing setup for tracing the flow of data through AMP. 2015-09-17 21:56:14 +02:00
Griatch
cb0417fe7f Fixed the connect and command DoS checkers to work more stably and not exclude too much. Resolves #779. 2015-09-17 00:46:45 +02:00
Griatch
19bfaae8a6 Finished converting server/ and server/portal to google-style docstrings as per #709. 2015-06-23 15:20:32 +02:00
Griatch
37763ceca5 Added MAX_CONNECTION_RATE, MAX_COMMAND_RATE for throttling various aspects of input as a DoS measure as per #640. 2015-05-15 01:51:09 +02:00
Griatch
3c2e44346a The portalsessionhandler was storing the latest command time on itself rather than on the session. Should fix getting logged on despite being active. 2015-03-14 16:00:55 +01:00
Griatch
000f14c028 Updated how the automatic timeout closes the session on the portal side. A lot cleaner now. 2015-03-06 18:52:29 +01:00
Griatch
71e9038c62 Started removing the global maintenance scripts, but ran into strange AMP issues. 2015-03-06 15:59:58 +01:00
Griatch
a23d78d5b0 Removed the rate limiter in portal for now, not sure how useful it actually is. Need to investigate further ... later. 2015-03-01 10:54:28 +01:00
Griatch
9793c57dd4 Made portalsessionhandler manage command rate limitations directly, using a cmd/s average over 200 commands. 2015-02-28 15:37:20 +01:00
Griatch
b94bb17576 Implemented contents_cache handler for a speed boost for many situations, as per #620. 2015-02-28 11:29:05 +01:00
Griatch
9ac3296b04 Introduced a trottling mechanism in the portalsessionhandler, limiting the number of new connections per second. Also fixed a bug in deleting a puppeted object. 2015-02-24 23:11:04 +01:00
Griatch
d8286a592e Turning off debug messages for OOB 2015-02-14 20:18:08 +01:00
Griatch
08525f11ee Implemented GMCP with the new oobhandler. Resolves #208. 2015-02-14 19:46:25 +01:00
Griatch
d5a7908a43 MSDP basic testing for ECHO and SEND done. 2015-02-13 23:34:02 +01:00