Commit Graph

19 Commits

Author SHA1 Message Date
3d1efa57a0 splip in lodash-migrate for debugging 2016-05-19 07:28:52 -07:00
453cd9e1af [transport] expose a method for updating the host list 2016-02-04 12:12:25 -07:00
784942c60c fix some unit tests expecting bluebird promises 2015-11-24 15:18:54 -06:00
1c3f72db17 [transport] update tests to check 391f228 2015-11-16 17:45:47 -06:00
284f61e2ee Adding transport tests for domain callbacks 2015-10-06 17:02:51 +01:00
04583c2f96 implement config.sniffedNodesProtocol
If you use https to protect traffic between esjs client and the nodes in your cluster then you also can't use sniffing. This is because we use the /_nodes/_all/clear output to populate the connection pool and that API does not know that the nodes speak HTTPS at all. This change implements the config.sniffedNodesProtocol to fix this.

As it is implemented here, the sniffedNodesProtocol can be set to a string which will be used as the protocol configuration for each Host object created durring sniffing, plain and simple. The default value for this configuration depends on the hosts initially passed to the client, if all of the nodes have the same protocol that protocol is used. If your nodes list is empty or there is a mixture of protocols in this list then "http" is used, as it is the default protocol for each host.
2015-09-10 18:47:05 -07:00
a9175dad58 [transport] before failing to send a request, ensure the return value is defined 2015-09-10 15:13:07 -07:00
ae69f624a7 added timer stubs for clear, since not all platforms accept a number in clearTimeout 2015-03-26 13:55:25 -07:00
867e3ae569 Revert "remove timer specifications"
This reverts commit 878fb67801.
2015-03-26 13:54:05 -07:00
878fb67801 remove timer specifications 2015-03-17 14:20:59 -07:00
c991b589a4 transition away from lodash-node 2015-03-17 11:59:06 -07:00
88bff6e67d fix test for IE 2015-01-11 00:46:10 -07:00
3b69e21262 update tests to use new timer object 2015-01-09 23:23:06 -07:00
44490e16ae added a note to the config docs about the suggestCompression setting 2014-09-08 16:22:15 -07:00
4e8d267d71 added tests verifying the global config is always passed to the host. 2014-09-08 16:12:35 -07:00
4ab22a1a61 switched to bluebird for promise support 2014-03-27 09:49:21 -07:00
bfa6c40157 Updated nodes_to_host callback
Now, it will properly ignore nodes without HTTP enabled, and nodes with addresses that don't match the pattern will not cause all hell to break loose but rather log an error message and cancel the sniff.
Also comes with minor updates to the API.
2014-03-18 11:45:59 -07:00
03f7a844a3 use lodash-node rather than vanilla lodash so that lodash doesn't attach to require js even when it's available. 2014-02-11 16:08:10 -07:00
513486f372 updated loggers to write the actual url 2014-01-28 16:45:39 -07:00