Oh god! goto is a VERY BAD behaviour
Fix timeout handler and gid/uid checking
Fix identation and update write style
Simplify read_request
Fix and simplify read_random
Oops: Fix build
Simplify write_response
Not duplicate response declaration
Keep new style
Merge remote-tracking branch 'origin/rewrite'