perlcritic: less strict mode because some code from AnyEvent::Socket is used