Some time back, when AN was around, we had tested a holdem tournament on Rounders and it had gone well, so much so that i had even announced that tournament is working fine on Rounders. When this issue was raised again as to why work is not complete i was very very surprised. But then I tested a 2 table tournament and immediately saw the issues. The client would show the table to be hung, moves won't come on time, moves won't go to server, you name it...
Anyways so when I was given the go ahead to salvage the situation, i started looking at it from 2 perspectives - why is client not in sync with server and if client determines that it is out of sync, why can't it connect back with the server?
You see, I always was a sucker for school of thought of planning my work before hand and so after going thru the logs I noted that these 2 issues were of prime importance and went after my job. The 2nd issue of why client was unable to reconnect back was solved easily. The handler id was being removed from registry on the event of disconnection which was absurd. So fixed one issue. The other issue was a really tough nut to crack. After poring thru 80 mb of logs for one round of tournament and another 80 mb of logs for 2nd round of tournament i zeroed upon the issue. For some reason packets from client were getting dropped but packets from server were able to reach the client. In this event there is no I/O exception at the socket level so client is blissfully unaware that it is out of sync with server. Meanwhile server marks the client as disconnected. So now server won't let the client makes its moves, server wont even send moves to the client and all hell breaks loose. Well I thought that I have finally cracked the code. So I put in changes in a jiffy and started one table tournament. That went amazingly fine. So then 2 table tournament. Well for the first 20 minutes, it was w/o any issues. I almost thought that the major problem is solved. But then all the clients went into disconnection mode and couldn't connect back to server. Immediately I knew the reason. The check in java client was not good enough :-(
Well anyways, the new java client is ready. And one more round of tourny testing on Monday awaits me :-)
My 3 months of probation are complete here. I haven't yet talked to boss about it. I am waiting for them to make their first move. Will there be any hike, any promotion? The only hint that came was from AS who repeated what boss had mentioned some time back, that i will be getting some stock option in Mar/Apr. Well, that would be great, but what i need right now is cash to repay loans. The stock option would be great, but it is the cash which is the ultimate king. Need to seriously plan my finances.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment