Michael Bayne
6c4f37d49f
Drive by de-whitespace-excessificiation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5469 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-26 21:08:21 +00:00
Michael Bayne
ded19474bc
Added foo/s to various report output.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5468 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-26 20:59:24 +00:00
Michael Bayne
ce7cc1bc96
Added PeerService.generateReport().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5467 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-26 20:19:32 +00:00
Michael Bayne
8aeb239f64
Only put our header on logged reports, not reports generated by explicit
...
callers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5466 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-26 20:12:03 +00:00
Michael Bayne
f17740894e
Out vile tabs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5465 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-26 20:09:18 +00:00
Michael Bayne
8b79a17b6d
A helper class that smooths out integration of Narya invocation service calls
...
with the java.util.concurrent Future paradigm.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5464 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-26 20:05:28 +00:00
Ray Greenwell
d9aee80a12
Killed bureau.Log.
...
We never did things like that in actionscript,
and that pattern is now deprecated on the Java side as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-25 01:36:18 +00:00
Ray Greenwell
5216602e63
Change how we link classes that aren't otherwise linked.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5462 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-25 01:24:13 +00:00
Michael Bayne
8970582e6d
Only issue this warning if we actually have one non-null and one null value.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5461 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-24 21:43:23 +00:00
Ray Greenwell
3a457a2479
Muting for actionscript.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-24 21:20:43 +00:00
Michael Bayne
e52dae9a92
Accomodate up to one extra message per second in case the client is balls to
...
the wall. There are vagaries of timing that simply cannot be accounted for and
a client that spends too much time with its balls up against a proverbial hard
flat surface will eventually get disconnected, but we are now a bit more
lenient in handling ~10 second sustained bursts of activity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-24 20:45:18 +00:00
Michael Bayne
9cf79c22b3
Simulate a client that remains up against its message limit for well beyond the
...
10x buffer provided by the server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-24 20:43:01 +00:00
Michael Bayne
1989531831
Mystery solved.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-24 07:13:13 +00:00
Mike Thomas
c4e0d1d278
Be a bit more flexible with the generics here.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-23 23:18:44 +00:00
Michael Bayne
2c35dbf0d0
Log this for a while while I debug the sporadic failure of session resumption
...
on Whirled.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-23 21:32:21 +00:00
Ray Greenwell
f8e4911266
Might as well make our actionscript trim() null tolerant as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5454 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-23 21:00:08 +00:00
Dave Hoover
43ce491518
Whoops, how about I look more closely when I do that? We're dealing with two
...
arrays here, so if I just sort the one, it'll give us nicely sorted tabs that
point to the wrong contents.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5453 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-21 22:47:13 +00:00
Dave Hoover
9ffd721490
Since these keys come back in pretty random order, let's sort them alphabetically.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5452 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-21 16:38:01 +00:00
Michael Bayne
92f79dad34
Use varargs logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5451 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-21 01:52:05 +00:00
Jamie Doornbos
6fa89df998
Allow a size limit to be imposed on the amount of output that we copy from a bureau process
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-16 22:37:08 +00:00
Ray Greenwell
a0771dce79
- Added a primitive formatNumber()
...
- Handle commas in parseNumber()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-16 20:54:53 +00:00
Dave Hoover
31d0151815
Nope, those really are on PlaceManager, they're just protected so
...
my javadoc stuff freaked out since PresentsServer isn't allowed to
see them. Point back to the right place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-15 20:06:57 +00:00
Dave Hoover
27b52ccb87
Those are on me, not PlaceManager
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-15 18:58:26 +00:00
Michael Bayne
de6558a25b
Guard against naughtiness, intentional and not.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 23:16:39 +00:00
Michael Bayne
c914827458
We need an invmgr reference as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5445 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 23:02:18 +00:00
Michael Bayne
0764379634
Make omgr the same type it used to be.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5444 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 21:39:02 +00:00
Michael Bayne
ccba68ab36
This needs to come back to make a whole bunch of Game Gardens games work.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 21:32:54 +00:00
Nathan Curtis
24b5b905e1
A couple of example usage fixes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5442 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 21:06:28 +00:00
Jamie Doornbos
077c5e8053
At Ray's suggestion, go ahead and throw an error when the wrong type is read. Use the Type(obj) cast syntax (I was unaware that this would actually throw an error). Reading objects of a basic type like Array must still use "readObject(Array) as Array" so this is still supported, though not needed for user types.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5441 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-13 17:34:55 +00:00
Jamie Doornbos
2b298aa3d5
Pass in the expected type to readObject anywhere the code would clearly convert the wrong type to null anyway
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5440 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 06:28:50 +00:00
Jamie Doornbos
a3cc67348e
Gah, this was part of the implementation, but in the end I took it out but missed the import
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5439 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 06:21:54 +00:00
Jamie Doornbos
e12ff0e9f3
Optional type checking for readObject
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 06:06:06 +00:00
Jamie Doornbos
a99238faf8
Fixed username member for actionscript. Serialization was completely hosed
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5437 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 05:17:40 +00:00
Michael Bayne
f1b1a06834
Updated services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5436 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:46:24 +00:00
Michael Bayne
97b6ea79c5
Moved BodyObject.username down to ClientObject.username so that one can look up
...
the PresentsClient given a ClientObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5435 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:45:58 +00:00
Michael Bayne
91d7846b46
We need to register our handler for ThrottleUpdatedMessage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5434 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:45:25 +00:00
Michael Bayne
ae6e3e883a
Test throttle changing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:43:55 +00:00
Michael Bayne
a4a25674ce
Outgoing message throttle for ActionScript. This uses a timer rather than a
...
frame listener so that it has a chance of working out of the box on Thane.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 17:27:47 +00:00
Mike Thomas
c4527b2524
Split out the "chat name" from the rest of the visible name usage - Unfortuantely, visible name is used by various game bits as a lookup, so sometimes we want to just override the name to display in chat without affecting those lookups.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 01:25:18 +00:00
Ray Greenwell
19ac92f624
We've got a utility method for filling an array with an initial value.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5430 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-09 23:20:29 +00:00
Michael Bayne
b7214df1c2
We need our array to be filled with zeros, not undefineds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5429 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-09 22:08:47 +00:00
Michael Bayne
9f2682a5e4
All of the ActionScript side of adjustable outgoing message rate throttling
...
except the actual throttling part. Need to think about a good way to do this
without blocking the whole client when we hit the throttle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-09 20:18:12 +00:00
Dave Hoover
a9ed8f68da
Damnit, narya, stop getting that little yellow triangle w/ an exclamation mark
...
every time I svn up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 22:25:39 +00:00
Jamie Doornbos
142598958d
Just noticed this old sc workaround file, it is no longer needed
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:16:44 +00:00
Michael Bayne
4f89bb2dbc
Point to the right explanatory method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5425 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:14:27 +00:00
Michael Bayne
2e8b63435a
Thinking about it more, what we really want is for the client to target the per
...
second rate (10 messages per second), and to do the same 10x buffer on the
server that we were doing before so that we avoid disconnects due to network
congestion (which might "save up" some throttled messages and then end up
delivering them in a bunch with some later messages).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:13:30 +00:00
Michael Bayne
234b00df27
That's initialized in the constructor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 19:39:35 +00:00
Michael Bayne
9c65e203b5
Client side message throttling. The server is configured with a hard limit, it
...
communicates that limit to the client which queues outgoing messages so that it
does not exceed the limit. When the throttle is changed, the server does not
apply the new throttle until the client has ACKed it to avoid edge cases where
the client is up against the limit when the throttle changes.
ActionScript side of all of this forthcoming as well as more testing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 19:38:00 +00:00
Dave Hoover
df42b4a013
Overrides & whitespace.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 18:51:22 +00:00
Michael Bayne
d68aaec196
Run the right client and server tests.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 18:26:03 +00:00