Commit Graph

7233 Commits

Author SHA1 Message Date
David Glasser
f63aeee8eb When initializing oplog tailing, only read 'ts'
This means we read less data (yay), but more importantly it means that
if the last entry contained custom EJSON types, we don't try to parse
them. This code gets called synchronously from the first
Meteor.Collection constructor, which can legitimately be before your
EJSON.addType call.

Fixes #2018.
2014-04-10 14:38:31 -07:00
David Greenspan
5345a0c78a Add missing "var" 2014-04-10 10:16:01 -07:00
David Greenspan
0fb3c916ef Minor (no-op) change 2014-04-09 11:57:56 -07:00
David Greenspan
204a2c7eb5 Don't depend on underscore in attrs.js 2014-04-09 11:57:56 -07:00
David Greenspan
cef1ae8d88 Blaze: move all attribute updating to attrs.js 2014-04-09 11:57:56 -07:00
Nick Martin
34581338f0 remove now unused script. 2014-04-08 23:53:05 -07:00
Nick Martin
9cee4d2265 Merge branch 'dev-bundle-bump' into devel 2014-04-08 01:03:40 -07:00
Nick Martin
4b49b0614b New NPM keeps shrinkwrap files in alphabetical order. 2014-04-08 01:02:46 -07:00
Nick Martin
714e513b99 Upgrade Node.js from 0.10.25 to 0.10.26 2014-04-07 22:56:41 -07:00
Nick Martin
4a1a6816d3 Bump openssl version used for mongo. Add node-aes-gcm.
The previous version of openssl (1.0.1f) was vulnerable to the 'heartbleed'
attack, though Meteor did not use this version in a way that opened
it to attack. The build of openssl here is used only for mongod, not
node, and was used only as a client, not a server. But lets upgrade anyway.
2014-04-07 22:50:43 -07:00
David Glasser
be4d306288 Ensure that oplog observe driver retries on error 2014-04-07 22:33:13 -07:00
David Glasser
1d3b7f9c69 Upgrade to released mongod 1.4.0 2014-04-07 22:33:09 -07:00
David Glasser
498e572230 Make self-test less flaky with more waits. 2014-04-07 20:09:30 -07:00
Slava Kim
3d7448bcce Pass the filepath to less parser 2014-04-06 15:36:05 -07:00
Slava Kim
9c59218554 Styling tweaks to minifiers 2014-04-04 11:53:12 -07:00
David Greenspan
83799bb7f2 Fix comment in Deps 2014-04-03 20:27:18 -07:00
Slava Kim
0930e5f246 use the latest reworkcss/css-parse to fix #1958 2014-04-03 19:03:50 -07:00
David Greenspan
61a1bb5e14 Streamline Deps exception path
For debugging, it's better to not rethrow an exception if possible.  This code should be equivalent.
2014-04-03 18:42:38 -07:00
David Greenspan
c65038c04a Fix Deps debugFunc for non-Meteor use
Apparently on current Chrome you can't call (f = console.log, f("x")).  You need to bind console.
2014-04-03 18:42:38 -07:00
Neftedollar
bae16dd762 Add Windows Phone to mobile
Add Windows Phone to mobile userAgents
2014-04-03 17:25:14 -07:00
David Glasser
da0138c72a Add guidance on how to use validateLoginAttempt
Addresses #1960.
2014-04-03 16:59:02 -07:00
Nick Martin
f1f29d2e13 Don't override specific error messages with generic ones.
Addresses #1960.
2014-04-03 16:51:21 -07:00
David Greenspan
db8c05bd62 Make Deps not require Meteor again 2014-04-03 14:26:06 -07:00
Tim Haines
266095c913 Oauth Pending Credentials - even cleaner reconstruction in recreateError 2014-04-03 13:28:44 -07:00
Emily Stark
9f6734dfa4 Add History change for pending OAuth results in db 2014-04-03 13:22:37 -07:00
Emily Stark
e9c9b8270e Merge branch 'multi-server-oauth' of https://github.com/timhaines/meteor into timhaines-multi-server-oauth
Conflicts:
	packages/accounts-oauth/oauth_server.js
2014-04-03 13:17:53 -07:00
Tim Haines
53a7e818dc Oauth Pending Credentials - cleaner reconstruction in recreateError 2014-04-03 13:10:24 -07:00
David Greenspan
8805281798 Make Deps not require Underscore 2014-04-03 09:26:46 -07:00
David Glasser
3405644027 Fix runner.stop() while waiting for file change
Before this, if the runner decided to stop (eg, because mongod is
crashing too much) while waiting for file change, it would crash due to
an attempt to wait within a fiber.  Fixing that bug by adding an inFiber
would then lead to the process just not exiting, because nothing stops
the wait-specific future.
2014-04-02 21:16:59 -07:00
David Glasser
82aa3485ac Assign the Fiber to self.fiber.
Doing so reveals a deadlock in the stop code (which causes self-test to
fail, yay).  Fix it by trying harder to not stop the (all or app) runner
until after the app runner has processed the "hey you should stop"
return false from onRunEnd.
2014-04-02 20:27:54 -07:00
David Glasser
a61dd5c9f3 upgrade mongo to 1.4.0-rc9 from a fork of 1.3.19 2014-04-02 19:38:33 -07:00
Tim Haines
e9d7ba92ee Rename transientResult to pendingCredential. Handle Meteor.Errors. Emily's Comments. 2014-04-02 17:03:49 -07:00
Maxime Quandalle
f05e93afde Don't rewrite URI with a defined protocol (ie http(s) or data) Use the node url module to parse the URI 2014-04-02 11:52:58 -07:00
David Greenspan
6454067e66 Make Blaze packages internal 2014-04-02 09:56:33 -07:00
David Greenspan
e91fea7512 Remove old, unused html5-tokenizer package 2014-04-02 09:56:33 -07:00
David Glasser
f36abc946e Generalize "load *.html files first" hack
Now any plugin can request that its files be treated as "templates" by
setting an isTemplate flag.

(This API is just as supported as you'd expect based on the fact that
you still can't access it without calling a function which starts with
"_transitional_".)

Tested by renaming leaderboard.js to a.js and confirming that it still
works (and that it *doesn't* if templating does not set isTemplate).
2014-04-01 17:21:24 -07:00
David Glasser
d287d36bac Make run tests less flaky 2014-03-31 20:03:01 -07:00
David Glasser
3e76ad7946 Don't use require('./run-log.js').runLog
If you happen to introduce a circular require into the stack, this
object will be undefined.

Instead, hang on to `require('./run-log.js')`, which is the exports
module which does get filled in later.
2014-03-31 19:52:02 -07:00
David Glasser
241ba37f66 DDP spec: wrap heartbeat section 2014-03-31 18:41:24 -07:00
Nick Martin
c918bae9ab Merge branch 'ddp-heartbeats' into devel 2014-03-31 00:19:48 -07:00
Nick Martin
a690cacc63 Only print timeout message on the client. 2014-03-30 23:52:42 -07:00
Nick Martin
2216f6d05f Comments. 2014-03-30 22:53:41 -07:00
Nick Martin
7f44bdf0c8 Add debug print on timeout.
We have this now for sockjs timeouts, and it seems handy to have for DDP timeouts.
2014-03-30 22:18:34 -07:00
Nick Martin
cb5556f7d2 Up sockjs heartbeat timeout (60s->100s) to match new sending interval (25s->45s) 2014-03-30 22:02:55 -07:00
Nick Martin
197552ae9b Add ping and pong to DDP spec.
Minimal writeup. Could stand to be fleshed out a bit. Maybe later.
2014-03-30 21:43:58 -07:00
Andrew Wilcox
6f4f723c6a Allow user to set heartbeat interval to 0 to disable sending pings.
Add test flag `_respondToPings` which allows tests to disable
responding to pings.
2014-03-30 20:03:29 -07:00
Andrew Wilcox
8709365598 Stop heartbeats on client side disconnect.
Use heartbeatInterval: 0 to disable heartbeats for testing.

No need to add `_internal` to the public connection API because we
can get to the internal session through the server.
2014-03-30 20:03:29 -07:00
Andrew Wilcox
865eb30015 Move protocol out of heartbeat.js 2014-03-30 20:03:29 -07:00
Andrew Wilcox
0ac3bf9d4b Move the ddp-heartbeat test into tools/tests. 2014-03-30 20:03:29 -07:00
Andrew Wilcox
05c4edf9f7 DDP Heartbeats
Add "ping" and "pong" messages to DDP.  This allows us to detect at
the DDP level when we've lost the connection.

Bump the DDP version to "pre2".  Preserve backwards compatibility by
not enabling pings if the negotiated DDP version is an earlier version.

Since receiving a ping indicates that the connection is alive, one
side of the connection doesn't have to send its own pings as long as
its receiving pings from the other side.  The ping interval defaults
to 30 seconds on the server and 35 seconds on the client, which means
that normally the pings go just one way (saving on bandwidth).

Increase the sockjs heartbeats from 25s to 45s, so they do not
normally fire.
2014-03-30 20:03:28 -07:00