update api doc for progress block
fix compliler warning, length type in-sync on what afnet expects in 2.x