todo: setsockopt http://blog.chinaunix.net/uid-9688646-id-3476132.html https://my.oschina.net/u/2381372/blog/802844