My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 4: msrecv can get stuck
1 person starred this issue and may be notified of changes. Back to list
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)) {



Powered by Google Project Hosting