Commit Graph

22 Commits

Author SHA1 Message Date
9ebb0ed618 really fix the use of ForeverAgent 2014-03-14 08:36:47 -07:00
8cc01c51b3 set useChunkedEncodingByDefault on http requests so that forever-agent will allow them to use the socket pool 2014-02-27 16:59:19 -07:00
5ff3341636 Actually pass the minSockets config to the Agent, it's only used by forever-agent but doesn't hurt passing it to http.Agent 2014-02-26 12:44:17 -07:00
697c761b71 fixed the force closing of the forever agent, which was removing items from the same array it was itterating. 2014-02-17 01:11:53 -07:00
257d596207 attempting to diagnos random issues with the client.close() test 2014-02-10 13:49:02 -07:00
327f191056 fixed and added a test for keepalive connection pool forced shutdown 2014-02-06 22:30:29 -07:00
86b617f98d switch to forever-agent 2014-02-06 13:24:50 -07:00
e9648638d9 Fixes a transposition of the agent class names. 2014-01-13 15:04:53 -08:00
b98c00eb0b Fixes a bug that causes HTTPS to never be used. Without using the HttpAgent version of KeepAliveAgent the connections always default to http instead of https, even when https is specified as the protocol. 2014-01-13 14:58:52 -08:00
cf3be01c57 - grunt watch will now abort mid task
- connection's ping method now accepts requestTimeout, path, and method params like
  all the grown-up API calls
- ConnectionPool now managed connection timeouts. When a connection dies a
  timeout object is created to track when the timeout is scheduled and the function
  to call when it does. It also tracks how many times it has run to allow the timeout
  to grow
- Timeouts now grow with use of `config.calcDeadTimeout` which is set to 'exponential'
  by default, but can also be set to flat in order to always use the standard
  deadTimeout. Exponential growth of the deadTimeout is stopped at config.maxDeadTimeout
  which is set to 30 minutes by default.
- Connections no longer have a resuscitate method (too hard to spell). Now the
  method is created dynamically as a part of the timeout object as it just calls
  the connection's ping method and needed to access variables like revive attempts.
- Timeouts were moved to the transport layer, meaning that you need to capture the
  abort method and abort the request yourself if you are handling connections
  directly, ConnectionsAbstract's ping method does this.
2013-12-16 02:35:28 -07:00
14f863e040 Sending back headers in the HTTP connector, also stoped logging errors from there so that logs are clearrer and logging is just done from the transport. 2013-12-14 13:57:37 -07:00
345ac776ef Major updates for testing and grunt, jenkins tests are now powered by the jenkins.sh script in the scripts directory. 2013-12-12 15:39:42 -07:00
270763e0a7 Added more unit tests, up to 98% coverage. Fixed the Gruntfile so it's not a cluster-f**k anymore. 2013-12-06 18:39:48 -07:00
4e5f08a29c many tests 2013-12-03 19:01:04 -07:00
2ddde47972 fixed content length for utf8 bodies in the http connector 2013-12-03 11:27:42 -07:00
2b5f6cd80d lots of changes, should have committed earlier 2013-12-02 18:43:52 -07:00
477f1aff84 Fixed the integration tests, set the default method for indices.putTemplate and indices.putMapping to PUT 2013-11-25 14:14:00 -07:00
97ba084795 save point durring huge unorganized refactor 2013-11-22 16:48:30 -07:00
5bb70fbe58 Moved the curl formatting into the log and changed the arguments for the log event listeneres to
receive both the "message" and the "curlCommand".

Added a "tracer" logger which allows you to create log files that a executable scripts. Those scripts
will write all of the log messages as script comments, and not comment out the curlCommands, so that they
can trace their application and use the generated script to recreate the issue.

Most changes are simply cased by adding the "unused" rule to jshint.
2013-11-15 19:10:45 -07:00
7ad81390f6 updated dep list, added versions, and checked that the tests run well against the latest 1.0 beta and 0.90 2013-11-11 14:47:47 -07:00
7e6fa479ad Added the browser based test suite, have it running automatically via PhantomJS with grunt, all tests are passing except one, which requires PhantomJS send a body with a DELETE request 2013-11-05 10:01:12 -07:00
286a08c8c2 Added browser build, including angular version. minified versions available 2013-10-29 19:47:00 -07:00