refine socket cache
Merge github.com:goagent/goagent into 3.0
add generate_RSA.bat

Signed-off-by: wwqgtxx <wwqgtxx@gmail.com>