Files
meteor/packages
David Glasser 3b3e8d7b93 Simplify ServiceConnection.
- ServiceConnection should never try to reconnect. It's already the case
  that we don't hold open ServiceConnections over long periods while
  idle; it makes the class much simpler if it corresponds to a single
  TCP connection. This also means that as soon as we have one connection
  failure (eg you're offline) we can fail instantly instead of retrying
  pointlessly.

- Drop the explicit timeout code in ServiceConnection. There's already
  timeout handling in stream_client, and now that we don't retry, it
  actually takes effect.

- Be more rigorous about uses of Future in ServiceConnection. Ensure
  that each Future is only used once (ie, avoid "Future resolved more
  than once" errors).  Hopefully fixes #2390.

- ServiceConnection constructor now blocks until it's connected (and
  throws if there's a connection failure).  Maybe this introduces a tiny
  bit more latency to the connection, but it makes it much easier to
  handle errors properly.

- In packageClient.handlePackageServerConnectionError, show the error
  message corresponding to the connection failure.

- In Node, the (newish) error passed to the Stream callback is now a
  "DDP.ConnectionError" object. We can detect this in the tool (and we
  don't even need to do some complex uniload/instanceof dance, since
  error classes made with Meteor.makeErrorType label themselves with a
  string errorType).  We also no longer have a special
  ServiceConnection.ConnectionTimeoutError.
2014-08-17 21:34:57 -07:00
..
2014-08-16 20:39:24 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-07-21 16:18:25 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-17 21:34:57 -07:00
2014-08-15 12:34:47 -07:00
2014-08-08 00:06:55 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-07-30 17:40:44 -07:00
2014-08-08 00:06:55 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-08-15 12:34:47 -07:00
2014-07-21 16:18:25 -07:00
2014-08-15 12:34:47 -07:00