Codes to test onSend/blockRecv issue