aboutsummaryrefslogtreecommitdiffstats
path: root/timers.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: fix up copyright headersJason A. Donenfeld2018-09-161-1/+1
|
* Fix typo in timersJason A. Donenfeld2018-05-271-1/+1
|
* Fix data races in timersJason A. Donenfeld2018-05-201-11/+11
|
* Fix race in lock pendingJason A. Donenfeld2018-05-201-4/+10
|
* timers: no need to clear keepalive in persistent keepaliveJason A. Donenfeld2018-05-191-3/+0
| | | | | | | | | | We do this after sending the keepalive anyway. This is something of a regression, though, since before we'd cancel and then send, but now we send and then cancel, so it introduces a potential race, but hopefully that isn't too big of a deal. Kernel module commit a24b3e6e15ae1ea1291666e5da910caf43eedbaf
* timers: clear send_keepalive timer on sending handshake responseJason A. Donenfeld2018-05-191-7/+9
| | | | | | | | We reorganize this into also doing so on sending keepalives itself, which means the state machine is much more consistent, even if this was already implied. Kernel module commit 30290ef1d2581a3e6ee8ffcdb05d580cfba976be
* Lock timers on modificationJason A. Donenfeld2018-05-151-7/+32
|
* More refactoringJason A. Donenfeld2018-05-131-25/+1
|
* Rework index hashtableJason A. Donenfeld2018-05-131-2/+2
|
* Rewrite timers and related state machinesJason A. Donenfeld2018-05-101-305/+171
|
* Removed remaining signals from peerMathias Hall-Andersen2018-05-051-14/+7
| | | | | | 1. Removed remaining signals from peer struct 2. Made needAnotherKeepalive local 3. Removed environment check from warning text (annoying when debugging)
* Use Int32n for jitterMathias Hall-Andersen2018-05-051-47/+48
|
* Removed old signalsMathias Hall-Andersen2018-05-051-68/+38
|
* Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen2018-05-051-0/+5
|\
| * global: Add SPDX tags and copyright headerJason A. Donenfeld2018-05-031-0/+5
| | | | | | | | Mathias should probably add his copyright headers to each file too.
* | Initial version of migration to new event modelMathias Hall-Andersen2018-05-051-53/+88
|/ | | | | - Begin move away from global timer state. - Made logging format more consistent
* Add missing locks and fix debug output, and try to flush queuesJason A. Donenfeld2018-05-011-14/+14
| | | | | | Flushing queues on exit is sort of a partial solution, but this could be better. Really what we want is for no more packets to be enqueued after isUp is set to false.
* Fixed read from closed channelMathias Hall-Andersen2018-04-181-3/+7
| | | | | | | A premature waitgroup .Done resulted in reading from closed channel. This caused a nil-pointer deref & crash. Added additional debugging when closing routines.
* Use simple 16-bit integer for persistent keepaliveJason A. Donenfeld2018-04-181-3/+3
| | | | Races for this aren't a huge problem.
* TUN status hack was causing spam during shutdownMathias Hall-Andersen2018-02-111-6/+5
|
* Moved ratelimiter to internal packageMathias Hall-Andersen2018-02-111-1/+1
|
* Fixed tabsMathias Hall-Andersen2018-02-111-348/+348
|
* Work on logging formatMathias Hall-Andersen2018-02-041-12/+14
|
* Align with go library layoutMathias Hall-Andersen2018-02-041-0/+346