prometheus-community / pro-bing

A library for creating continuous probers
MIT License
326 stars 55 forks source link

add timeout to receive packet #77

Closed Megis82 closed 10 months ago

Megis82 commented 10 months ago

Add key -rt (receiveTimeout) and timeout after which the packet is considered lost Add OnLost func that can be called after deciding packet was lost

SuperQ commented 10 months ago

This appears to work, but be warned, it will spawn a new goroutine for every packet.