get rid of old buffered session packets

This commit is contained in:
Arceliar 2019-06-28 20:02:58 -05:00
parent e7cb76cea3
commit e88bef35c0
3 changed files with 3 additions and 15 deletions

View file

@ -37,7 +37,6 @@ type searchInfo struct {
dest crypto.NodeID
mask crypto.NodeID
time time.Time
packet []byte
toVisit []*dhtInfo
visited map[crypto.NodeID]bool
callback func(*sessionInfo, error)
@ -215,7 +214,6 @@ func (sinfo *searchInfo) checkDHTRes(res *dhtRes) bool {
}
// FIXME (!) replay attacks could mess with coords? Give it a handle (tstamp)?
sess.coords = res.Coords
sess.packet = sinfo.packet
sinfo.core.sessions.ping(sess)
sinfo.callback(sess, nil)
// Cleanup