fix freeze by revert "Mangosd: Rewrite packet processing for incoming data"
+ some corrections