Commit Graph

130 Commits

Author SHA1 Message Date
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
Eliot Horowitz
7d96c8df49 fix select() timing for os x SERVER-1596 2010-08-09 13:49:09 -04:00
Eliot Horowitz
a4dc5281d8 try to fix select timing on windows SERVER-1596 2010-08-09 12:16:21 -04:00
dwight
e7c3af37ab EINTR retry 2010-08-07 14:14:51 -04:00
Eliot Horowitz
9fe88675c5 fix fast elapase time 2010-08-02 14:49:51 -04:00
Mathias Stearn
6afb2abd7d use global rather than local cache for isSelf 2010-07-29 16:49:43 -04:00
Mathias Stearn
6baeb71caf use bind() in HostAndPort::isSelf() SERVER-1414 2010-07-29 16:34:38 -04:00
dwight
2088a68e9a rs logging 2010-07-28 20:39:09 -04:00
dwight
bed8c99ab7 attempt clean up ernoodesc on windows 2010-07-28 16:01:28 -04:00
Mathias Stearn
0a80030ba9 plug memory leak 2010-07-26 21:09:10 -04:00
Eliot Horowitz
55382a6b84 clean up log messags 2010-07-26 11:23:34 -04:00
Dwight
f1d859be45 rs dropalldatabases bug 2010-07-22 13:13:50 -04:00
Eliot Horowitz
db31e7bf50 debugging 2010-07-21 12:46:33 -04:00
dwight
a5a05a8bae errno doesnt work with winsock, handle 2010-07-07 17:36:23 -04:00
Eliot Horowitz
85ee9d5f90 fix linux compile 2010-07-04 08:30:59 -04:00
Eliot Horowitz
8eb88a0f6e oops - #if != #ifdef 2010-07-04 08:18:41 -04:00
Eliot Horowitz
1d1d36c424 better windows limit 2010-07-04 08:13:31 -04:00
Eliot Horowitz
09031b917f cut off new connections based on fd limit 2010-07-04 08:09:19 -04:00
Mathias Stearn
ae2aa8a245 Static destruction order fix SERVER-1276 2010-07-01 17:46:06 -04:00
dwight
c5ab124c45 missing closesocket in miniwebserver edge case 2010-06-26 22:32:12 -04:00
Eliot Horowitz
fd974724b9 remove extern 2010-06-22 12:51:43 -04:00