fix cpu hogging: make recv task blocking
zero buffer after read with readlen<buflen
remove sockread in sockwrite task
change cmd channeltype to result for clean matching