Commit graph

46 commits

Author SHA1 Message Date
Griatch
7e416e0cd6 Start fixing things for django 1.10. 2017-06-06 14:56:13 +02:00
Griatch
90bd1a77dd Fix typo webroot->web_root 2017-06-04 23:21:24 +02:00
Griatch
167d09b4cd Add secret_settings and mechanisms for managing it. This allows for easier hiding game- and server-specific settings when sharing the game dir with others. 2017-06-04 22:55:28 +02:00
Tehom
ccfbe06ded Fix AttributeError when webserver isn't enabled. 2017-06-03 21:57:11 -04:00
Griatch
d73a2876cf Add support for cmdline reloading when requests are blocked. 2017-06-04 00:35:55 +02:00
Griatch
00f71667ba Further refactoring. 2017-06-03 19:03:37 +02:00
Griatch
7be82159f4 Add LockableThreadPool class. 2017-06-03 18:41:21 +02:00
Tehom
96ab620618 Add extra checking for additional requests made while we were in the process of stopping reactor, change from callLater to deferLater to be compliant with inlinecallbacks. 2017-05-31 07:14:25 -04:00
Tehom
4b5ee77292 Attempt to address crash bug when stopping threadpool if there are pending web requests. Return a DeferredList to be checked in server shutdown. 2017-05-30 03:45:55 -04:00
Vincent Le Goff
95c8bf348b Save the game time before shutting down the server (avoids drfts) 2017-02-15 23:43:49 +01:00
Griatch
a9f08760cc Further refactoring towards #1176. 2017-02-02 00:02:58 +01:00
Griatch
052e1845a2 Fix error in MonitorHandler recovering a saved Session across a reload. This probably affected the TickerHandler as well. Add a new hook to the server object that gets called once the portal has synced, and run the monitorhandler/tickerhandler restores there. Also some changes to the serialization of Sessions. Resolves #1164. 2017-01-15 19:55:51 +01:00
Griatch
19e8528b04 Update ObjectSessionHandler to avoid a caching syncing issue; should resolve #1153. 2017-01-11 23:42:09 +01: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
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
58a771f85c Turn off http request logging unless settings.DEBUG is set. Relates to #983. 2016-06-15 23:08:42 +02:00
Griatch
25e1126809 Make a missing web_plugins.py module error more gracefully. 2016-06-12 22:55:05 +02:00
Griatch
64c74c41a1 Add a plugin mechanism for the webserver with settings.WEB_PLUGIN_MODULE. 2016-06-12 18:00:28 +02:00
Griatch
e09a172854 Fixed a regression that had non-persistent Scripts not being deleted as they should on server reload. Also prepared for the same functionality for tickerhandler tickers. 2016-05-22 20:45:40 +02:00
Griatch
166189a7a5 Made ajax/comet client fallback work correctly in the new framework. 2016-05-22 20:45:38 +02:00
Griatch
2427db7f9f Fixed a lingering docstring reference to game/server.py. 2015-12-18 11:14:24 +01:00
Griatch
161383f9ae Fixed a repeat error in Scripts (resolves #890). Added separation between calling script.pause() deliberately and it being called automatically by the reset/reload, in order to preserve manual pauses across server reloads (resolves #891). 2015-12-17 00:12:07 +01:00
Ahmed Charles
b9bdeb3e9c Replace filter with if/comprehension. 2015-11-09 10:11:34 +01:00
Ahmed Charles
11b61fe335 Import python3 compatible object. 2015-11-02 00:19:04 +01:00
Griatch
e67c2bb7d7 Made sure to run clear_all_sessions() at cold start, just to catch the edge case where the server was killed without a chance to do its normal cleanup (which could then leave lingering sessids behind). Resolves #856. 2015-11-01 17:39:39 +01:00
Ahmed Charles
9d3ce1e8f0 Call at_server_shutdown, at reset/shutdown for scripts. 2015-11-01 15:11:39 +01: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
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00
Griatch
eb024e0cfb Fixed a special case of the amp protocol not being initialized during the very first startup. 2015-05-25 23:42:39 +02:00
Griatch
b7872f2d6f Changed the order of Portal/Server shutdown to make sure the Portal stops correctly in light of the changes to the shutdown protocol from previous revision. 2015-05-14 21:20:31 +02:00
Griatch
33154d4d60 Reworked server reboot code to make the cold reset function work as documented and not disconnect any sessions. Resolves #742. 2015-05-14 20:18:39 +02:00
Griatch
e35a42c9fd The script pause mechanism was not called at server shutdown. Resolves #729. 2015-03-28 12:42:00 +01:00
Griatch
1fdd83f7a7 Removed debug messages 2015-03-09 15:47:29 +01:00
Griatch
1c298951d6 Fixed an error in Windows version that put pid files in the wrong location (how come a Windows user didn't notice this one before?) 2015-03-07 20:27:12 +01:00
Griatch
04a1d9c238 Added CONN_MAX_AGE setting to 7hrs to avoid 'database has gone away' errors with MySQL default settings. Resolves #619. 2015-03-06 21:21:07 +01:00
Griatch
895f8504cd Run migrations! Removed global system scripts, moving into maintenance functions on the portal and server level. This means that runtimes will be reset as the system resets to the new system. 2015-03-06 16:54:37 +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
b015f4802a Added better docstrings to subpackages and cleaned out some places which were unclear. 2015-02-23 17:46:42 +01:00
Griatch
07dd81851e Fixed some bugs in new oobhandler mechanism to make tests work again, but oobhandler is still not tested. 2015-02-13 08:09:29 +01:00
Griatch
ec4e985c39 Made sure to have the launcher send the gamedir as the first entry in the environment for the portal and launcher. This makes it possible to start evennia from anywhere in the game folder. 2015-02-10 00:12:41 +01:00
Griatch
e3944552c5 Changed how the server updates the changed typeclasses. Rather than initializing the objects, this fix handles it by writing the new fields to the database directly (which is much faster to boot). This resolves #636, but there are still some cases where it might be dangerous to not replace a faulty typeclass with a default one, so might still need to add that. 2015-01-15 22:49:52 +01:00
Griatch
ab052b8301 Fixed bugs, made server start. Still cannot reload. 2015-01-08 19:56:54 +01:00
Griatch
33a42d06c5 Fixed many path-related issues, getting closing to getting the server to boot. 2015-01-08 16:00:22 +01:00
Griatch
ad3f19896c Changed all src/ and ev references to evennia 2015-01-07 15:36:32 +01:00
Griatch
c7325a5032 Further reworking, naming the library folder 'evennia' instead of lib or src. 2015-01-07 13:36:57 +01:00
Renamed from lib/server/server.py (Browse further)