Fix dynamic send window size calculation, use successfull/lost ratio to adjust window
Don't crash but drop client on broken duplicated package detection