Sockets extra management functions.

Intro

Thanks and regards for good product!

Motivation

Currently mongoose work pretty bad with large data transferring for several reason : first is because mongoose have 1 - master + several worker threads + small fifo for connections querying, the second there are no way to add manually IO scheduling in embedded mode, to solve this problem see details at (1).

(1) new connection(request for getting a lot of data) -> clone connection(socket in my version) -> move socket handle to the IO scheduler loop(like round-robin), which will write small chunk of data per socket handle.

PS 
Me and my company(where I work) we love use mongoose in some back-ends but at high load(mean IO, transferring large data into over 1000 connection) mongoose works not well so we fixed this problem by using IO scheduling + mongoose embedded with dup sockets handles.

I could add into mongoose build-in IO scheduling. So if you have an interesting ping me.