migrate to mips-linux-open environment. add SO_KEEPALIVE to prevent hangs.