Commit Graph
100 Commits
Author SHA1 Message Date
lotodore a7f0a23f22 Fixed 100% processor time issue. 2007-11-21 00:26:14 +00:00
lotodore 46b8ae54b8 Disable test mode. Oo. 2007-11-21 00:19:43 +00:00
lotodore 689b22e0b9 The sender thread has been rewritten with a new algorithm in mind. The sender should not stall any more, and no timeout is required. There are no more send priorities.
The avatar manager no longer serializes access to avatar files.
2007-11-20 23:58:24 +00:00
lotodore a5999eb30b Fixed minimum message size issue. 2007-11-20 23:14:53 +00:00
lotodore e6d85739ce Update protocol version in tests. 2007-11-20 23:01:27 +00:00
lotodore b5208759bd Added admin irc channel to changelog. 2007-11-20 12:47:30 +00:00
lotodore 0f07315ef2 Increment beta revision. 2007-11-18 18:38:45 +00:00
lotodore 9e0ffe4317 Prepare to send reason for leaving a game. New protocol version as it is not compatible to the current beta. 2007-11-18 12:53:42 +00:00
lotodore 6ab852966f Minimum raise is now in players action done. 2007-11-18 00:28:45 +00:00
lotodore 8cffc9bc49 Fixed minimum raise for blind actions in network game. 2007-11-18 00:21:04 +00:00
lotodore 88c55eb68a Send minimum raise value on players action done, not players turn. This version is NOT compatible to the current internet server. 2007-11-18 00:06:14 +00:00
lotodore c4b1afaadc Try to fix minimum raise. 2007-11-17 00:49:25 +00:00
lotodore bc16e26616 Use server manager to allow SCTP and TCP at the same time. 2007-11-16 22:34:38 +00:00
lotodore a24a93caba Use unix linefeeds for all files. Finally. It's about time. 2007-11-16 15:24:25 +00:00
lotodore f428fb7904 Fixed linefeeds. 2007-11-16 15:01:40 +00:00
lotodore 26bde9388d Fixed kicking players with spaces in their names through the new admin interface. 2007-11-16 01:30:07 +00:00
lotodore 09d8156089 Reduce number of avatar sender threads to 1, as there is an issue with the load balancing. 2007-11-16 00:59:51 +00:00
lotodore cdd21250de Added support for password protected irc channels. Added server IRC mode for admin use, to allow requesting statistics and kicking players. 2007-11-16 00:58:23 +00:00
lotodore 7f5ff4af97 Fixed bug where computer players where displayed as numbers in lobby. 2007-11-14 22:54:47 +00:00
lotodore d21ef93ea0 Suppress displaying messages. 2007-11-14 22:15:19 +00:00
lotodore 82a1be763b Use several sender threads with load balancing for sending the avatars. Remember last failed send operation (not yet a list, just the last) and cancel any more low prio sends to that sender. 2007-11-14 22:11:04 +00:00
lotodore 5328bf082f Use boost::shared_ptr instead of std::auto_ptr where threads are involved, because std::auto_ptr is not thread safe. 2007-11-14 13:19:28 +00:00
lotodore f1f45c9b0b Truncate any existing avatar file when saving in cache dir. 2007-11-11 15:59:41 +00:00
lotodore d905359251 Store server statistics data in a log file and reload it when the server is restarted. 2007-11-11 15:58:35 +00:00
lotodore da559c8d88 Removed the qt static plugin libs again. 2007-11-11 14:07:41 +00:00
lotodore 96eb74992e Fixed long term client issue when player id overflows (very unlikely, as it is 32 bits). 2007-11-11 11:31:07 +00:00
lotodore 09edcdfc8c Update lib versions. 2007-11-11 11:12:38 +00:00
lotodore cc0caaa3e3 Increment beta revision. 2007-11-10 22:29:54 +00:00
lotodore f2b1397cca Linefeeds. 2007-11-10 22:29:00 +00:00
lotodore ef84c7b81a Fixed kick bug by letting the client reverse iterate over its cached player data when looking for a player name. Added several exceptions. 2007-11-10 22:18:31 +00:00
lotodore c7ab731648 Quick fix of nasty server crash which occurs when kicking from within a game. Real fix of the problem will follow. 2007-11-10 21:23:22 +00:00
lotodore e796eb0980 Game test now with packet output. 2007-11-08 22:28:25 +00:00
lotodore 172a566c79 Testing two test cases in parallel. 2007-11-08 21:42:22 +00:00
lotodore 0326c0be26 Increment beta revision. 2007-11-07 22:07:14 +00:00
lotodore 90de94d221 Fixed string. 2007-11-07 20:47:54 +00:00
lotodore 5f5a3d90f5 Fixed some compiler warnings. 2007-11-07 14:11:57 +00:00
lotodore 59ffc02872 Limit the number of irc rename retries even more. 2007-11-06 19:54:52 +00:00
lotodore 3e8fc41cb4 Limit number of IRC nick rename tries. 2007-11-04 13:01:03 +00:00
lotodore 9de1712aa9 Revert last change. 2007-11-03 21:13:08 +00:00
lotodore 8e4901719c Fixed setting last players turn 2007-11-03 21:05:20 +00:00
lotodore 4ed7ec46fd Reset last players turn on bero change for client. 2007-11-01 21:24:26 +00:00
lotodore 7cff145cd3 Fixed last players turn in client - do not update for blinds. 2007-11-01 20:54:32 +00:00
lotodore 9691a6f263 Set all in condition on client. 2007-11-01 20:45:57 +00:00
lotodore 3f52a31c84 Increment beta revision. 2007-11-01 19:37:19 +00:00
lotodore e89be5687a Only update avatars when in a game. 2007-11-01 19:27:02 +00:00
lotodore e9604d0177 Cache avatars on client only for 1 day. 2007-11-01 19:23:35 +00:00
lotodore 864af81193 Don't request own avatar from the server. Only request avatars of other players after joining a game. 2007-11-01 18:36:03 +00:00
lotodore 392b0b8f23 Enable retrieval of avatar file name through session. 2007-11-01 10:09:29 +00:00
lotodore a3cb6c25e3 Don't wait for avatars on game sync, instead show them whenever they are there. 2007-11-01 00:37:41 +00:00
lotodore a3c9390bfe Redesign of avatar stuff. First part. 2007-11-01 00:12:47 +00:00
lotodore 3a0fc4a71e Also disable avatar retrieval on server. Fixed nasty send "wrong return value" (Linux only). 2007-10-31 22:33:52 +00:00
lotodore ec5196c417 Disable avatars on server side until the bug is fixed. 2007-10-31 21:24:02 +00:00
lotodore e5f05c5359 Trying to fix the avatar problem. 2007-10-31 20:23:27 +00:00
lotodore 184eb4a577 Fixed avatar problem where clients were kicked. 2007-10-31 19:21:54 +00:00
lotodore 9662b5bbb6 Increment beta revision so that old clients display a note. 2007-10-30 22:07:56 +00:00
lotodore b0524a59ff Fixed two race conditions. 2007-10-30 21:25:10 +00:00
lotodore fee8450a74 Still trying to fix the SIGPIPE problem. 2007-10-30 21:02:52 +00:00
lotodore 7fc3ae4adf Fixed compiler warnings. 2007-10-30 17:31:14 +00:00
lotodore 3ab6211009 Fixed compiler warnings. 2007-10-30 17:26:38 +00:00
lotodore cba5ee389e Fixed compiler warnings. 2007-10-30 17:21:11 +00:00
lotodore 7000722d75 Suppress sigpipe in sender thread. 2007-10-30 16:59:47 +00:00
lotodore 9cf398d3e0 Fixed winner list issue on client. 2007-10-30 16:57:48 +00:00
lotodore b89ce1d67f Trying to fix SIGPIPE issue on server (linux). 2007-10-30 13:03:17 +00:00
lotodore 26157027dc Fixed macro redefinition. Set money won in server. 2007-10-29 22:37:42 +00:00
lotodore 70e2d5556f If a sender thread is stalled while trying to send, time out after 2 seconds. Use infinite timeout when terminating threads. 2007-10-29 22:16:21 +00:00
lotodore ded7ca7daf Added winner list for network client. 2007-10-29 19:57:46 +00:00
lotodore 3953210ad9 Use larger thread termination timeouts. 2007-10-29 18:49:28 +00:00
lotodore 001ac0272b Additional log messages. 2007-10-29 12:57:29 +00:00
lotodore 219a922c9e Fixed crash in the server which was caused by not waiting long enough for the termination of threads. 2007-10-29 11:57:17 +00:00
lotodore 0a42827290 fixed compiler error 2007-10-29 09:37:14 +00:00
lotodore 38b1c4bafd Use more graceful timeouts. 2007-10-29 09:34:28 +00:00
lotodore bc11d42aba Added missing log for exception. 2007-10-29 09:30:34 +00:00
lotodore 62e030d9e2 Suppress packet display for now. 2007-10-29 09:21:45 +00:00
lotodore e36d878a07 Added code to run fast test games. 2007-10-29 09:18:34 +00:00
lotodore 6cdbb4807e Run complete test games. 2007-10-29 09:17:04 +00:00
lotodore f0c7fded3d Fixed packet type. 2007-10-28 20:57:36 +00:00
lotodore 08ab159bc0 Fixes and part of new test. 2007-10-28 20:45:47 +00:00
lotodore 3ea61381ef Use client game id when kicking players during game. 2007-10-28 19:38:49 +00:00
lotodore 717c0fcb98 Fixed memory leak. 2007-10-28 16:20:32 +00:00
lotodore 2bae534704 Additional flooding test. 2007-10-28 16:09:25 +00:00
lotodore f821f9c0a4 No longer delay closing of sessions (not needed any more). 2007-10-28 15:21:24 +00:00
lotodore cdea81b2ba Fixed sender again, as it did not work when sending errors. 2007-10-28 15:06:57 +00:00
lotodore e951bda1db Flooding tests. 2007-10-28 13:24:06 +00:00
lotodore b848d2125f Specified some values in game info block. 2007-10-28 13:05:13 +00:00
lotodore 92f03db7a2 Always delay before closing a session. Last part of the fix. 2007-10-28 13:04:05 +00:00
lotodore fa7af40a49 Fixed a very nasty bug concerning the sender thread. SOCKETs were assumed to be kind of unique, but Windows tends to return the socket number of a socket which was just closed as new socket number in accept. This led to very strange behavior when the server was flooded with inits, because the sender thread still had entries for this socket number (which were not removed because they should just fail).
No longer use socket as key in maps, instead, use the session id. Only use the session id in the sender thread, "resolve" it to the socket only in the moment when it is needed. Outstanding requests will be detected to have an invalid session id then.
Also, as side effect, fixed an issue with two callback classes which were named the same and caused unexpected behavior.
2007-10-28 12:53:54 +00:00
lotodore bb64e07657 Show lobby for players if they are kicked during a game. 2007-10-27 20:29:46 +00:00
lotodore e27be88942 Fixed bug when kicking during game. 2007-10-27 19:53:04 +00:00
lotodore 6b19b3291a Missing if to check for kick in server during game. 2007-10-27 19:48:31 +00:00
lotodore 8f1e5132d6 Added kick function with player name. 2007-10-27 18:51:53 +00:00
lotodore 0d0104107b More work on network tests. 2007-10-26 15:03:44 +00:00
lotodore 17af91ce05 More work on network tests. 2007-10-26 14:58:41 +00:00
lotodore ae33299758 If a client does not initialize properly within a certain time, remove the network session. 2007-10-26 14:54:57 +00:00
lotodore 9368c5f16e Network test fixes. 2007-10-26 10:51:03 +00:00
lotodore e0f1193963 Clarified initialization order to prevent possible race condition when initializing a new game. 2007-10-25 21:59:06 +00:00
lotodore d0c34c572b Automatically cleanup cache once a day on the dedicated server. 2007-10-25 21:20:35 +00:00
lotodore d0cea553df Fixed boost string comparison. Oo. 2007-10-25 20:35:57 +00:00
lotodore f019523879 Use boost for case insensitive comparison. 2007-10-25 20:26:44 +00:00
lotodore f3556bff57 Case-insensitive channel names for IRC. Fixed leaving admin players. 2007-10-25 19:50:43 +00:00
lotodore dc74186b5a Fixed syslog stuff. 2007-10-24 23:24:57 +00:00