Commit Graph

147 Commits

Author SHA1 Message Date
vyzo 0710dd37a5 add docstring for confidence 2018-10-16 12:48:28 +03:00
vyzo 590aed0cef Add configurable Identify delay, with default value of 5 secs 2018-10-16 12:12:10 +03:00
vyzo 810238c3e7 jenkins file 2018-10-12 18:07:41 +03:00
vyzo d15e65b95b increase identify delay to 500ms 2018-10-12 18:06:04 +03:00
vyzo bff416bf7e adjust AutoNATRetryInterval in autonat tests 2018-10-04 16:57:02 +03:00
vyzo ab67096901 use more peers if less than 3 are connected 2018-10-04 13:46:39 +03:00
vyzo 5ada32f26c use more peer dial errors for increased confidence in NATPrivate state
3 times is enemy action; this is more resilient to transient dial errors.
2018-10-04 13:37:51 +03:00
vyzo 2d5d58ce51 call AutoNATService.peers something else (reqs) 2018-10-03 19:52:42 +03:00
vyzo 88ad7b74ec configurable throttle for service rate limiter 2018-10-03 19:41:08 +03:00
vyzo cb0e1930e3 add /libp2p prefix in protocol string 2018-10-03 16:28:21 +03:00
vyzo 8c66f57ec6 ensure test hosts are only on loopback 2018-10-03 16:22:58 +03:00
vyzo c640cd812b add observed address to the dialback set 2018-10-03 16:15:58 +03:00
vyzo 744bf71d91 use the protocol list by identify, don't emit chatter on every connection 2018-09-29 11:38:53 +03:00
vyzo 9d3db84029 address review comments 2018-09-29 11:09:48 +03:00
vyzo b88d3b600f test for ambient autonat functionality 2018-09-08 17:01:21 +03:00
vyzo bc61d559c5 basic service tests 2018-09-08 16:10:11 +03:00
vyzo a0234678eb make service dialback timeout configurable; useful for tests 2018-09-08 15:57:48 +03:00
vyzo 9d20474431 accept libp2p options for the dialer constructor in NewAutoNATService 2018-09-08 14:21:04 +03:00
vyzo fc32ec3315 svc: construct dialer host without listen addrs 2018-09-08 11:31:40 +03:00
vyzo 30134cf510 regenerate protobuf 2018-09-08 11:31:40 +03:00
vyzo ce8aa43832 fix typo 2018-05-12 08:20:04 +03:00
vyzo 81477e5d53 improve NATStatusUknown docstring 2018-05-11 15:50:50 +03:00
vyzo 7ea67c6344 improve docstring for NewAutoNAT 2018-05-11 09:46:16 +03:00
vyzo 889081eeba docstrings and another mutex hat. 2018-05-11 09:40:36 +03:00
vyzo 55cd73a0d8 mutex hat 2018-05-11 08:13:53 +03:00
vyzo 9c5851a806 simplify autonat client itnerface 2018-05-09 12:16:16 +03:00
vyzo bdb5781450 don't throw away read errors; log them. 2018-05-09 11:53:15 +03:00
vyzo 7f690dcc68 refactor getPeers for locked scope 2018-05-09 11:47:16 +03:00
vyzo f36100a1f9 named magic number incantations 2018-05-09 11:37:49 +03:00
vyzo 003e697e6a variables for background delays 2018-05-08 16:17:05 +03:00
vyzo 2584bc51ff AutoNATState is AmbientAutoNAT 2018-05-08 16:11:33 +03:00
vyzo da3f7b5527 bump initial autodiscovery delay to 15s 2018-05-07 12:25:35 +03:00
vyzo 1c0355d3e8 typed NATStatus constants 2018-05-07 12:08:13 +03:00
vyzo ea2e287572 no need to select; it's a one shot sync 2018-05-07 12:03:21 +03:00
vyzo 8af7aacd7a add localhost to private addr ranges 2018-05-06 18:33:21 +03:00
vyzo e9f8bf996a don't try to dial private network addresses
addresses service TODO
2018-05-06 17:47:53 +03:00
vyzo bd18d4edd9 add network notifee 2018-05-06 15:39:24 +03:00
vyzo 82a7aa9c0f add TODO in service about skipping private network addresses 2018-05-06 13:24:16 +03:00
vyzo edf41b43f1 fix autonat peer tracking
connection state can be determined through the network interface on demand
2018-05-06 13:13:19 +03:00
vyzo ae9117749d we only track autonat peers
fix bug introduced in last commit
2018-05-06 12:02:54 +03:00
vyzo 7fc002407f don't delete autonat peers on disconnect, just mark them as disconnected 2018-05-06 12:00:17 +03:00
vyzo a713affd39 remove left-over design notes 2018-05-06 11:28:24 +03:00
vyzo 645e280349 NAT autodetection 2018-05-06 11:22:32 +03:00
vyzo 6d61b523ff service implementation 2018-05-06 09:49:02 +03:00
vyzo 76d49e17f1 add E_BAD_REQUEST to protobuf 2018-05-06 09:45:30 +03:00
vyzo 1ad785cc02 basic client 2018-05-05 16:45:58 +03:00
vyzo f0b7fc9cf3 protobuf 2018-05-05 16:12:39 +03:00