Issue 4: msrecv can get stuck
Status:  New
Owner: ----
Reported by den.kov...@gmail.com, Sep 18, 2010
What steps will reproduce the problem?
1. Server side: srvsock=mslisten(3000); sock=msaccept(srvsock);
2. Client side: sock=msconnect('localhost',3000);a=msrecv(sock)
3. Server side: msclose(sock)

What is the expected output? What do you see instead?
Expected output: a=[]
Instead msrecv never terminates, and I have to restart matlab.

What version of the product are you using? On what operating system?
Version 1.0

Please provide any additional information below.

Two simple changes in msrecv solves this issue:
Lines 108 and 134:
Instead of checking
		if (ret == -1) {
check for 
		if ((ret == -1)||(ret == 0)) {