Commit Graph

5592 Commits

Author SHA1 Message Date
Michael Bayne 1f6f8edeb9 Allow custom BodyLocators to be provided to different PlaceManagers. Twisty
maze of passages!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-13 03:08:01 +00:00
Michael Bayne 31d09fcd14 Disambiguate custom auth names.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-13 02:51:55 +00:00
Michael Bayne 9a4f2edc5d We can just inject the injector.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-13 02:51:34 +00:00
Jamie Doornbos c5b7379dea Modernized logging of safe object manager
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5652 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-11 21:51:52 +00:00
Mike Thomas 1d9c2802ea Let's handle shorts and bytes too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-06 21:29:08 +00:00
Tom Conkling bb9f068782 commentfix
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-06 21:24:41 +00:00
Michael Bayne 65f4810832 Nixed unused import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-03 01:43:14 +00:00
Par Winzell 3171bc1ff4 Change the behaviour of the NameUpdater to play nicely with Name implementations where equal() does not depend on display name. Write cumbersome TODO comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-02 22:03:26 +00:00
Michael Bayne 4912d22b90 Widening, made a note about why we don't set _shutdownRequested.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5647 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-01 22:53:55 +00:00
Ray Greenwell 02d97ddec1 Allow a preconfigured URLRequest to be passed in.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5646 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-30 00:12:22 +00:00
Ray Greenwell 5c26798d10 Revert to targetting 9.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5645 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-29 20:29:22 +00:00
Ray Greenwell ca5aad1360 Updated to target flash 10.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-28 22:28:15 +00:00
Dave Hoover ef4ee0ac1e Let's teach GenReceiverTask to cope with inner classes the same way
GenServiceTask already does.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5643 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-27 01:45:19 +00:00
Jamie Doornbos a3d08aaa2d Oops, missed this little guy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-22 16:54:08 +00:00
Jamie Doornbos 00954dff5b Stop spamming the log file with these warnings. The code does nothing to prevent them and they are happening all over the shop in msoy.
Was going to try and skip the call to ClientObserver.clientSessionDidEnd if it has not yet been started but there is not clear way to determine the state of a session. It is shared between three different maps in ClientManager and PresentsSession and movement between the states is too complicated, at least for tomorrow's release.

[jamie@whirled1 /export/msoy]$ grep "Requested to release unmapped" log/world-server.log.2009-01-20 |wc -l
     830
[jamie@whirled1 /export/msoy]$ grep "Unregistered client" log/world-server.log.2009-01-20 |wc -l
    1971
[jamie@whirled1 /export/msoy]$ grep "Different clients" log/world-server.log.2009-01-20 |wc -l
     362


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5641 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-22 06:46:00 +00:00
Jamie Doornbos ba600f771d Allow client resolution to bail out in an orderly fashion is a disconnection occurs
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5640 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-22 06:32:14 +00:00
Jamie Doornbos 2a1b047159 Fixed negative units per second value when total units is greater than about 2.2 million
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-19 23:46:53 +00:00
Jamie Doornbos 3372808a9a Proper GLPGL header
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5638 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-19 23:02:19 +00:00
Jamie Doornbos 9cbed63ac7 Share the Reporter implementation of PresentsInvoker so that the PresentsAuthInvoker is reported too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5637 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-19 22:50:28 +00:00
Ray Greenwell 46e048ab4a Change the default behavior of handleSuccess: if the listener
is a ConfirmListener, do it! Hopefully this doesn't fork anything up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5636 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-17 02:21:44 +00:00
Ray Greenwell b2b8f57454 - Monitor logins to other nodes, boot any local sessions with the same
authentication name.
- Use new (ca. 2002) pattern of creating an overridable listener,
rather than making the whole class a listener.

Mdb told me to add this at the msoy level, but I think it belongs here.
Presents simply expects a user to be in one place.

It also occurs to me that we probably want something more sophisticated:
there may be unpersisted data connected to the session that should
be flushed prior to the session starting on another node. We may
want something like a lock when users log-in, so that other nodes
can terminate the session and flush any persistent data FIRST.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-15 23:19:02 +00:00
Ray Greenwell 9d28bdbeef Drive-by logging varargification.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-15 22:04:36 +00:00
Jamie Doornbos 44a4981d27 Stop trying to flush clients after the server shuts down
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-14 23:28:16 +00:00
Jamie Doornbos a99489e650 Aha! Fixed race condition in narya fundamentals introduced with guice (r5153). This was causing a very rare concurrent modification exception when a client would log on when another one was about to expire. The problem was revealed by the trace in the msoy log of the 2009/01/10.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-13 22:33:56 +00:00
Michael Bayne 96fb4752b3 Make it easy to determine how many (if any) nodes on which your function was
called.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-10 22:51:26 +00:00
Michael Bayne d273a550fa More session type reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-10 19:04:12 +00:00
Michael Bayne 4e980867cf No need to repeat ourselves.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-10 18:56:33 +00:00
Michael Bayne 06473a1a11 Fixed paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5628 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-10 18:56:21 +00:00
Michael Bayne 84b0a6b413 Report information that will allow us to disambiguate world, game and party
auths.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5627 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-10 18:46:31 +00:00
Michael Bayne a34f1592f4 Code hygiene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-08 22:16:23 +00:00
Michael Bayne 991b9a9ffc Updated to new Depot world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-08 02:10:25 +00:00
Par Winzell 09850202a8 The signature of findAll() has changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5624 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-07 19:32:59 +00:00
Ray Greenwell 8dcc87a749 Match some of the changes on the actionscript side, but did not
bring the "ChatSnooper" interface over, because it's not yet needed here.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-07 02:22:47 +00:00
Ray Greenwell 8058dd35e8 Added the ChatSnooper interface, to hear about chat from the server
prior to it being filtered.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5622 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-07 02:22:12 +00:00
Michael Bayne 053d411d41 Have the LocationDirector configure the ChatDirector with the current place
rather than having the ChatDirector listen for location changes from the
location director. This allows us to have multiple location directors work with
the same chat director as long as we're only in one place in one of the
location directors at a time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-06 22:24:28 +00:00
Michael Bayne 8fcfa6e211 Added bodyWillLeave() to go with bodyWillEnter() for great symmetry and
justice. Cleaned up some other stuff in the process.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-06 03:08:21 +00:00
Ray Greenwell 0c4665e587 We actually want to refuse to stream either int or Number
plainly. Actionscript prevents us from reliably using them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-06 02:11:55 +00:00
Dave Hoover e6180d359d Clean up a couple warnings
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-05 18:37:33 +00:00
Jamie Doornbos 5cfb56f003 Fix recently introduced error where int values could not be written out as objects, particularly problematic for generic containers like StreamableHashMap. This was causing the creation of tables to fail for any game with a "range" custom parameter. There is likely a better fix for this, but this will do until we think of it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5617 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-04 22:27:37 +00:00
Jamie Doornbos e9bfc85db8 Let new implementations of this have better variable names
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5616 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-04 21:24:20 +00:00
Jamie Doornbos 05afcd70d9 Moved a constant to the base class and replaced the hard-wiring there
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5615 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-04 07:14:54 +00:00
Jamie Doornbos eaa270be35 Stop java clients from queueing up ticks after logoff. This was sometimes causing a warning during shutdown.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5614 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-04 06:09:36 +00:00
Michael Bayne 581230b9a2 Operate on a snapshot of the overflow queue values as a connection may fail
while we're processing its overflow messages, which causes its overflow queue
to be cleared which causes a ConcurrentModificationException.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5613 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-03 00:41:53 +00:00
Michael Bayne b811f9e97f Enable unit profiling for great Whirled investigation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-02 19:10:33 +00:00
Michael Bayne 7e0bd5c99a Drive by unwrapping.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5611 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-31 22:31:34 +00:00
Ray Greenwell 7728ed9bd3 Further cleanup: always look up streamers by their java name.
- Sliiiiightly less efficient in a few cases.
- But: looking typed arrays up by class didn't work anyway,
  there was some duplicated code in jname and class lookup,
  and the jname thing handles Lists from the server. So
  overall I think this is a win.
Less code is better code.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5610 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-31 00:41:20 +00:00
Ray Greenwell e9152193b7 - Just use dictionaries, which are inside the HashMaps anyway.
- Register Long.

(I could probably sweep through narya and re-jigger a bunch of
the actionscript code that was written while I was learning the
language.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5609 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-30 23:59:40 +00:00
Ray Greenwell e6ea84e5da Refactor to avoid linear lookup of streamers.
This was a bit of a rabbit hole and took longer than expected,
and I had a stupid bug that took a while to find,
but in the end there are way more lines of code removed than
added, so I'll call it a win. Streamer lookup is now via a Dictionary.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5608 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-30 23:25:50 +00:00
Ray Greenwell c7612ecb7d Apply Jamie's fix for negative numbers here on the actionscript side, too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-30 20:25:51 +00:00
Ray Greenwell 9f920ae527 Added a note for Future Ray.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5606 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-19 22:13:24 +00:00