fix: properly handle requests from clients;
minor change mainly for test.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>