diff --git a/d b/d new file mode 100755 index 0000000..013a284 --- /dev/null +++ b/d @@ -0,0 +1,2 @@ +godebug build -instrument git.daplie.com/Daplie/go-rvpn-server/rvpn/connection -o debug main.go + diff --git a/rvpn/connection/connection_table.go b/rvpn/connection/connection_table.go index 00fdbcd..f814fa5 100755 --- a/rvpn/connection/connection_table.go +++ b/rvpn/connection/connection_table.go @@ -44,6 +44,7 @@ func (c *Table) ConnByDomain(domain string) (conn *Connection, ok bool) { //reaper -- func (c *Table) reaper(delay int, idle int) { + _ = "breakpoint" for { loginfo.Println("Reaper waiting for ", delay, " seconds") time.Sleep(time.Duration(delay) * time.Second) @@ -64,7 +65,7 @@ func (c *Table) reaper(delay int, idle int) { func (c *Table) Run() { loginfo.Println("ConnectionTable starting") - go c.reaper(10, 20) + go c.reaper(300, 60) for { select {