Shrink code lines and reduce code cyclomatic complexity (#8748)
Shrink code lines and reduce code cyclomatic complexity (#8748)

code cleanup in anetGenericAccept
JackieXie168/redis,JackieXie168/redis,JackieXie168/redis,JackieXie168/redis