Commit Graph

150 Commits

Author SHA1 Message Date
Kristina
7a3a044584 fix recursive loop in sending data SERVER-2933 2011-05-02 18:34:12 -04:00
Eliot Horowitz
dd1877599f fix socket time SERVER-3014 2011-04-28 13:15:34 -04:00
Mathias Stearn
c1fda2b61d More accurate uptimeEstimate on linux. Also ensure it never decreases. 2011-04-20 12:28:34 -04:00
Mathias Stearn
5e6f75b1c5 Don't create unix socket for HTTP interface SERVER-2204 2011-04-13 20:49:49 -04:00
Eliot Horowitz
c7bc8fd06c better port check, but MessagePort needs to be cleaned up 2011-04-05 09:22:14 -04:00
Eliot Horowitz
f9237e3cb6 working towrads unifying network code 2011-04-05 02:24:16 -04:00
Eliot Horowitz
ae0f82093e remove all clientId related code and systems, and just use tls SERVER-2872 2011-03-30 17:04:22 -04:00
Eliot Horowitz
c16a3b78c4 cleaner socket timeout logic 2011-03-30 12:15:48 -04:00
Eliot Horowitz
802c11fbc0 more accurate client id 2011-03-16 12:33:54 -04:00
Eliot Horowitz
40b9bee42b movving logic from .h to .cpp 2011-03-16 11:52:55 -04:00
Eliot Horowitz
693f98877f cache HostAndPort in MessagingPort 2011-02-01 01:08:57 -05:00
Eliot Horowitz
34e9ef62fb cleaning SocketException 2011-01-25 02:02:37 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
a4267c0b9b message error handling cleanup 2010-12-29 00:51:38 -05:00
Eliot Horowitz
4acc8e75d9 clean message error logging 2010-12-22 13:32:03 -05:00
Eliot Horowitz
cbe4a9a8d2 split out recv so can send many requests and then wait for all response 2010-12-22 13:32:03 -05:00
Eliot Horowitz
e23fab4200 if --maxconns is lower than system can handle, lower limit SERVER-2056 2010-11-19 04:31:24 -05:00
Eliot Horowitz
591dfb74fe compile linux 2010-11-09 00:18:32 -05:00
Eliot Horowitz
0c7e7101a6 track network in/out SERVER-2081 2010-11-09 00:15:14 -05:00
dwight
279d33bee6 dbclient: once a connection in failed state be sure not to use it. this is a fairly big change in a way because it now throws mroe often. affects replica sets. 2010-10-31 19:12:12 -04:00
Mathias Stearn
af434bb435 Remove socket files on shutdown SERVER-1869 2010-10-21 17:47:37 -04:00
Eliot Horowitz
50cad63cc1 reworking isSelf - tries ip match and then connecting to self if its running a server 2010-10-14 17:02:21 -04:00
Alberto Lerner
465896350e SERVER-1804 tighter background job 2010-10-13 17:38:09 -04:00
Alberto Lerner
6f95b43244 SERVER-1515 interface may not have an address 2010-09-17 15:04:18 -04:00
Eliot Horowitz
f20a9cd291 fix isSelf for debain systems with weird loopback ip 2010-09-16 11:22:12 -04:00
Alberto Lerner
5f7500bf01 Pull timer.h and time_support.h out of goodies.h
The code on both the new header files is essentially the same. This
commit just adjusted #include in dependent modules. The new headers
did not make to pch.h.

This change is in preparation for some improvements in code that is
now in time_support.h
2010-09-16 09:18:46 -04:00
Eliot Horowitz
8d53011001 start cleaning clientId handling - fixes dups case 2010-09-14 21:51:13 -04:00
Mathias Stearn
92eae23284 Solaris doesn't have getifaddrs SERVER-1515 2010-09-14 16:42:27 -04:00
Mathias Stearn
3326c8e257 Remove sameHostname and isLocalHost shortcuts since they make testing isSelf harder SERVER-1515 2010-09-14 16:23:00 -04:00
Mathias Stearn
8e5e584be4 Try using getifaddrs on all non-windows platforms SERVER-1515 2010-09-14 16:23:00 -04:00
Mathias Stearn
36e14406ef Use actual port number with getaddrinfo SERVER-1515 2010-09-14 16:23:00 -04:00
Mathias Stearn
4fada3fc46 give unix sockets 777 permissions SERVER-1774 2010-09-13 19:13:32 -04:00
Mathias Stearn
86f511ead0 use getifaddrs() on linux SERVER-1515 2010-09-13 18:43:56 -04:00
Mathias Stearn
e481f0f5d1 Revert "Revert "Revert "Use serverID in HostAndPort::isSelf SERVER-1515"""
This reverts commit 9dc8c7d008.
2010-09-13 17:28:20 -04:00
Mathias Stearn
9324ba3b77 Revert "HostAndPort::isSelf() -> ListeningSockets::listeningOn()"
This reverts commit 84abe861b1.

Conflicts:

	util/sock.h
2010-09-13 17:28:20 -04:00
Mathias Stearn
a50ff72621 Revert "Have ReplicaSets wait for Listener before initializing SERVER-1515"
This reverts commit 4697d93282.
2010-09-13 17:28:20 -04:00
Mathias Stearn
4697d93282 Have ReplicaSets wait for Listener before initializing SERVER-1515 2010-09-10 19:00:32 -04:00
Mathias Stearn
84abe861b1 HostAndPort::isSelf() -> ListeningSockets::listeningOn()
No longer assume listening on localhost
SERVER-1515
2010-09-10 19:00:32 -04:00
Mathias Stearn
9dc8c7d008 Revert "Revert "Use serverID in HostAndPort::isSelf SERVER-1515""
This reverts commit 3d1faf35fc.
2010-09-10 19:00:32 -04:00
Mathias Stearn
3d1faf35fc Revert "Use serverID in HostAndPort::isSelf SERVER-1515"
This reverts commit f23ba41ffa.
2010-09-07 19:09:46 -04:00
Mathias Stearn
f23ba41ffa Use serverID in HostAndPort::isSelf SERVER-1515 2010-09-07 18:50:39 -04:00
Mathias Stearn
eca02a4eec support sub-second timeouts SERVER-1515 2010-09-07 18:50:39 -04:00
dwight
cfb9944f7c less extraneous shutdown logging 2010-08-31 05:18:34 -04:00
dwight
b3118b904f rs close sockets when relinquish primary so clients arent surprised 2010-08-31 00:20:31 -04:00
Dwight
6c71ce88ff increase the maximum message rteceive size to 48MB for the transport. bulk insert messages might be pretty big. 2010-08-25 14:59:34 -04:00
Dwight
20155ad7fb make classes noncopyable to be safe. compile db_10.sln 2010-08-25 13:40:01 -04:00
Dwight
e52542e586 cleaning formatting 2010-08-25 13:01:36 -04:00
Eliot Horowitz
b1c3371ad7 remove SO_LINGER 2010-08-18 17:26:57 -04:00
Eliot Horowitz
7719fd049d use SO_LINGER 2010-08-18 14:20:21 -04:00
dwight
a2d882e300 remove ending() from backgroundjob - we dont use it 2010-08-13 15:30:00 -04:00