Commit Graph

181 Commits

Author SHA1 Message Date
Tyler Brock
6301a41254 minor: whitespace 2012-02-27 16:42:48 -05:00
Tyler Brock
8e64c74d7d RUBY-239 warn if bad options are passed to connection constructors 2012-02-27 14:06:07 -05:00
Tyler Brock
95d1129e75 minor: cleanup unused variables + methods 2012-02-17 15:18:02 -05:00
Tyler Brock
a57762c797 minor: remove unused variables in Connection and ReplSetConnection Classes 2012-02-17 13:36:28 -05:00
Kyle Banker
b79d408a11 Enable log duration by default for :debug-level logging. 2012-02-16 14:01:09 -05:00
Kyle Banker
8bdb64721b minor: remove unused code 2012-02-16 14:01:09 -05:00
Cyril Mougel
6ab02373ea add an option in connection to log duration 2012-02-03 17:29:30 +01:00
Tyler Brock
1124918502 added journal, connectTimeoutMS and socketTimeoutMS to URI options 2012-01-17 18:45:09 -05:00
Andrew Kane
ebfab91f53 Fixed scoping issue that causes connection to hang w/ :connect_timeout option 2012-01-06 00:37:56 -08:00
Kyle Banker
8fd89eb2a4 RUBY-386 extend ismaster timeout to Connection 2011-12-13 15:03:00 -05:00
Kyle Banker
b6ff77fcbc RUBY-379 RUBY-381 reconnect on 'not master' errors (fix close connection logic) 2011-12-05 15:25:37 -05:00
Kyle Banker
fa10508f07 Remove thread-local map and socket map (complexity creep). 2011-11-18 15:47:06 -05:00
Kyle Banker
e61f867e65 Connection#end_request 2011-11-16 13:06:56 -05:00
Kyle Banker
6345820eae RUBY-345 update logging startup message 2011-11-15 15:59:42 -05:00
Kyle Banker
83ac53202e minor: fix failing tests 2011-11-04 15:12:58 -04:00
Kyle Banker
a2a307c45d Distinguish between hard and soft pool close. 2011-11-04 09:23:41 -04:00
Kyle Banker
54433502f5 minor: cleanup 2011-11-03 18:41:25 -04:00
Kyle Banker
f668678fd1 Store sockets in thread-local variables when possible.
Allow connection pools to grow if needed. All this minimizes
the number of locks required and reduces the waiting time
for these locks.
2011-11-03 18:37:23 -04:00
Kyle Banker
a5373ddb83 Initial decoupling of Connection, ReplSetConnection,
and networking code.
2011-11-02 18:00:52 -04:00
Kyle Banker
f98c1099dc Ensure we pass pool timeout to pool. 2011-11-02 15:21:46 -04:00
Kyle Banker
d171f75bb0 Don't copy manager data. 2011-11-02 15:16:40 -04:00
Kyle Banker
045a556e99 minor: test fix 2011-10-17 15:09:54 -05:00
Kyle Banker
7a11bb18a9 Ensure that cursor requiring getmore ops will not
be affected by replica set refresh.

Prep for sending commands to secondaries.
2011-10-17 14:41:09 -04:00
Kyle Banker
1001e59e44 minor: test framework fixes; minor bug fixes 2011-10-13 17:58:20 -04:00
Kyle Banker
118cb18c33 Removed a completely unnecessary mutex. 2011-10-07 12:13:18 -04:00
Kyle Banker
83eaa4d51b Replica Set connection improvements for refresh and multi-threaded apps. 2011-09-13 17:50:01 -04:00
Kyle Banker
e678bac75e RUBY-306 clean up logging. 2011-09-07 17:14:53 -04:00
Kyle Banker
1c439df278 RUBY-312 Enable exhaust-mode queries. 2011-09-07 10:02:10 -04:00
Kyle Banker
50c38c6c6b RUBY-284 document :read API 2011-09-06 14:58:03 -04:00
Kyle Banker
5d83ab2460 RUBY-313 minor: deprecation warning should include removal version. 2011-09-06 14:30:00 -04:00
Kyle Banker
046038e18d RUBY-297 when possible, include error codes and
return objects in exception classes.
2011-09-06 14:22:50 -04:00
Kyle Banker
45c40e7267 RUBY-320 RUBY-284 initial cascading read API. Mapping sockets to pools. 2011-08-29 17:49:58 -04:00
Kyle Banker
f00c0dfcf0 RUBY-316 initial SSL support 2011-08-26 17:35:40 -04:00
Kyle Banker
3c127984a3 RUBY-242 check BSON size on a per-connection basis. 2011-08-25 14:57:24 -04:00
Kyle Banker
f3fbb98fa8 RUBY-314 replica set connection and test cleanup 2011-08-25 11:27:58 -04:00
Kyle Banker
1090dd3873 RUBY-314 initial implementation of replica set health checking via background thread 2011-08-24 18:34:00 -04:00
Kyle Banker
3027e29f46 Simpify replica set connection code. 2011-08-16 16:47:07 -04:00
Kyle Banker
3a602e1227 minor: Deprecate :timeout for :pool_timeout 2011-06-15 16:17:42 -04:00
Kyle Banker
b0d5df72fa RUBY-269 RUBY-275 added connect_timeout option 2011-06-15 14:20:11 -04:00
Kyle Banker
505bc68aab minor: RUBY-257 note log_message is a no-op on Connection#receive_message. 2011-05-10 14:35:51 -04:00
Kyle Banker
604d0f60ed RUBY-261 Cursor#close hits secondary when appropriate. 2011-05-10 14:21:23 -04:00
Kyle Banker
3509926071 Remove Connection#reset_connection (private) and deprecate
ReplSetConnection#reset_connection (public)
2011-03-29 12:18:58 -04:00
Kyle Banker
a6cc09e50c RUBY-236 more timeout tweaks and tests 2011-03-29 11:46:29 -04:00
Kyle Banker
f3174550b7 RUBY-236 Create timeout block only when timeout is set 2011-03-29 11:06:46 -04:00
Kent Sibilev
c9da58965a properly log sorting option 2011-03-28 11:18:14 -04:00
Kyle Banker
e49d50acc2 RUBY-236 set op_timeout for socket receive timeouts 2011-03-28 11:09:27 -04:00
Kyle Banker
272d4835a7 RUBY-252 RUBY-237 re-add Connection#host and Connection#port 2011-03-23 16:34:42 -04:00
Mauro Pompilio
e64f91e013 Implementation of the 'ping' command. Probably better suited for the 'active?' method. 2011-03-04 10:51:18 -05:00
Mauro Pompilio
1ad3285767 Add a mechanism to check if the connection is active/healthy. 2011-03-03 10:17:47 -05:00
Kyle Banker
ed44a7490c Improved replica set failover tests. A few
improved exception messages.
2011-02-15 16:48:29 -05:00