Merge pull request #1 from zjjott/master

add error handling
Merge pull request #2 from zjjott/master

添加一個異常類
big refactor
fix actions
close the client socket
err handling
fix action string
keep alive
write bytes
typo
typo
fix GetAction BUG