optimisation: create heartbeat frame only once per connection

This commit is contained in:
Matthias Radestock committed 2015-01-17 17:29:54 +00:00
1 parent aceaa66903
commit a3e9556e75
2 files changed
+13 -15

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ type LocalConnection struct {
stackFrag bool
effectivePMTU int
SessionKey *[32]byte
heartbeatFrame *ForwardedFrame
heartbeat *time.Ticker
fetchAll *time.Ticker
fragTest *time.Ticker