add limit differences in http handle

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>
add new logic on training

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>
correct initialization logic on ranging

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>