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
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