fixed the bug that maxRequestLength only works in the case protocol paring require caching