[SERVER-1515] Find better way to implement HostAndPort::isSelf() Created: 29/Jul/10 Updated: 12/Jul/16 Resolved: 28/Oct/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.7.2 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
On linux can use getifaddrs() |
| Comments |
| Comment by auto [ 20/Nov/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: support sub-second timeouts |
| Comment by Eliot Horowitz (Inactive) [ 28/Oct/10 ] |
|
Did the connect to self hack |
| Comment by Mathias Stearn [ 27/Sep/10 ] |
|
Bumping for solaris and windows. Fixed on other OSes. |
| Comment by Richard Kreuter (Inactive) [ 20/Sep/10 ] |
|
Mathias asked me to comment: some systems, e.g, Postfix and maybe also PostgreSQL, let the user specify what IP addresses/hostnames/subnets count as "self". |
| Comment by auto [ 17/Sep/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |
| Comment by auto [ 14/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Solaris doesn't have getifaddrs |
| Comment by auto [ 14/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Remove sameHostname and isLocalHost shortcuts since they make testing isSelf harder |
| Comment by auto [ 14/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Try using getifaddrs on all non-windows platforms |
| Comment by auto [ 14/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Use actual port number with getaddrinfo |
| Comment by auto [ 13/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: use getifaddrs() on linux |
| Comment by auto [ 13/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Revert "Revert "Revert "Use serverID in HostAndPort::isSelf This reverts commit 9dc8c7d0086da36c488afb333bb6621f32faa6c8. |
| Comment by auto [ 13/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Revert "Have ReplicaSets wait for Listener before initializing This reverts commit 4697d9328275b3ba52fb735550657a1e9fbb98a4. |
| Comment by auto [ 10/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Have ReplicaSets wait for Listener before initializing |
| Comment by auto [ 10/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: HostAndPort::isSelf() -> ListeningSockets::listeningOn() |
| Comment by auto [ 10/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Revert "Revert "Use serverID in HostAndPort::isSelf This reverts commit 3d1faf35fc53e9265838341a8ff2bfc17c75ff7e. |
| Comment by auto [ 07/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Revert "Use serverID in HostAndPort::isSelf This reverts commit f23ba41ffa20ed398e83348a278bb02500b0c9f5. |
| Comment by auto [ 07/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Use serverID in HostAndPort::isSelf |
| Comment by auto [ 07/Sep/10 ] |
|
Author: {'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: support sub-second timeouts |