Up to Main Index                             Up to Journal for April, 2012

                     JOURNAL FOR FRIDAY 27TH APRIL, 2012
______________________________________________________________________________

SUBJECT: A little testing player bot
   DATE: Fri Apr 27 12:30:11 BST 2012

After whipping up the network code last Tuesday I needed to sort out error
handling and make it robust. So yesterday I sat and wrote a little player bot.

Currently the world consists of the Dragon's Breath Tavern - four rooms in a
2x2 grid which may be familiar to some people from it's previous incarnation.
So I wrote the player bot and got it executing the following sequence of
commands: S, E, N, W ad infinitum.

Once that was working I set 100 of them going and left everything running
overnight! It's quite interesting watching 100 xterms, each running a player
bot at a different speed as they all square dance :)

So, checked on everything this morning and they were all still square dancing
and the memory usage was steady - so no memory leaks currently.

For those not familiar with WolfMUD and those who played a long time ago here
is the tavern:


               N         +------------+------------+
               |         |#1          |#4          |
              -+-        | Fireplace      Tavern     /
               |         |  (Start)       Entrance  /
                         |            |            |
                         +-          -+-          -+
                         |#2          |#3          |
                         |  Common        Tavern   |
                         |   Room          Bar     |
                         |            |            |
                         +------------+------------+

                            DRAGON'S BREATH TAVERN


Room #2 - the common room - was where there was a cat and the Barman was behind
the bar in room #3 ;)

--
Diddymus

______________________________________________________________________________

SUBJECT: Oops spoke too soon...
   DATE: Fri Apr 27 20:05:30 BST 2012

Looks like I spoke too soon when I said there didn't seem to be any memory
leaks. If a connection to a client is dumped - rather than a polite "bye I'm
off now" the goroutine for async output to the client gets 'zombiefied'. Of
course leaving clients running for 12 hours always connected didn't show this
up. So just reworking some networking bits, modifying the robot and we'll see
how that turns out.

--
Diddymus


  Up to Main Index                             Up to Journal for April, 2012