707221954f
This change adds adds an ability to use different source of time for whisper: when envelope is created it is used to set expiry to track when envelope needs to be expired This time is then used to check validity of the envelope when it is received. Currently If we receive an envelope that is sent from future - peer will get disconnected. If envelope that was received has an expiry less then now it will be simply dropped, if expiry is less than now + 10*2 seconds peer will get dropped. So, it is clear that whisper depends on time. And any time we get a skew with peers that is > 20s reliability will be grealy reduced. In this change another source of time for whisper will be used. This time source will use ntp servers from pool.ntp.org to compute offset. When whisper queries time - this offset will be added/substracted from current time. Query is executed every 2 mins, queries 5 different servers, cut offs min and max and the computes mean value. pool.ntp.org is resolved to different servers and according to documentation you will rarely hit the same. Closes: #687 |
||
---|---|---|
.. | ||
batch.go | ||
control.go | ||
control_bsd.go | ||
control_pktinfo.go | ||
control_stub.go | ||
control_unix.go | ||
control_windows.go | ||
defs_darwin.go | ||
defs_dragonfly.go | ||
defs_freebsd.go | ||
defs_linux.go | ||
defs_netbsd.go | ||
defs_openbsd.go | ||
defs_solaris.go | ||
dgramopt.go | ||
doc.go | ||
endpoint.go | ||
gen.go | ||
genericopt.go | ||
header.go | ||
helper.go | ||
iana.go | ||
icmp.go | ||
icmp_linux.go | ||
icmp_stub.go | ||
packet.go | ||
packet_go1_8.go | ||
packet_go1_9.go | ||
payload.go | ||
payload_cmsg.go | ||
payload_cmsg_go1_8.go | ||
payload_cmsg_go1_9.go | ||
payload_nocmsg.go | ||
sockopt.go | ||
sockopt_posix.go | ||
sockopt_stub.go | ||
sys_asmreq.go | ||
sys_asmreq_stub.go | ||
sys_asmreqn.go | ||
sys_asmreqn_stub.go | ||
sys_bpf.go | ||
sys_bpf_stub.go | ||
sys_bsd.go | ||
sys_darwin.go | ||
sys_dragonfly.go | ||
sys_freebsd.go | ||
sys_linux.go | ||
sys_solaris.go | ||
sys_ssmreq.go | ||
sys_ssmreq_stub.go | ||
sys_stub.go | ||
sys_windows.go | ||
zsys_darwin.go | ||
zsys_dragonfly.go | ||
zsys_freebsd_386.go | ||
zsys_freebsd_amd64.go | ||
zsys_freebsd_arm.go | ||
zsys_linux_386.go | ||
zsys_linux_amd64.go | ||
zsys_linux_arm.go | ||
zsys_linux_arm64.go | ||
zsys_linux_mips.go | ||
zsys_linux_mips64.go | ||
zsys_linux_mips64le.go | ||
zsys_linux_mipsle.go | ||
zsys_linux_ppc.go | ||
zsys_linux_ppc64.go | ||
zsys_linux_ppc64le.go | ||
zsys_linux_s390x.go | ||
zsys_netbsd.go | ||
zsys_openbsd.go | ||
zsys_solaris.go |