pre-rewrite
Rewrote luasockets from async to blocking.