update lua socket