Temporary fix for error handling in pktdisp
@@ -42,7 +42,10 @@ func PktDispatcher(c *snet.Conn, f DispatchFunc) {
n, dp.Addr, err = c.ReadFromSCION(dp.Raw)
if err != nil {
log.Error("PktDispatcher: Error reading from connection", "err", err)
- break
+ // FIXME(shitz): Continuing here is only a temporary solution. Different
+ // errors need to be handled different, for some it should break and others
+ // are recoverable.
+ continue
}
dp.Raw = dp.Raw[:n]
f(dp)
