srv: fix a bug when load id 0
web: add handler flush

usage: see pong.py