-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectionTestSuite.h hangs in MacOS #146
Comments
Can you please test changing the port from 12345 to 12347 in this test case:
Let's test if the socket from the first test case is in a "closing" state making it not readily available for the last test case. |
Didn't work. I get the same issue after changing both the acceptor port and connection port to |
Can you systematically disable two out of the three test cases by added "no" to the test cases' method name to see, what test case passes and what no? |
|
It actually seems to be failing at this line https://github.com/se-research/OpenDaVINCI/blob/master/libopendavinci/src/odcore/data/Container.cpp#L254 This is probably a result of the performance improvements which were committed here. Not sure why this works in Linux but not MacOS, any clue? |
@pletron: is this issue still relevant? |
@chrberger I've done some digging. It seems that the function Here is a post regarding the same issue, however, the link refers to an issue in Microsoft Visual Studio. I had a look in the c++ library files in Mac OS and found that the case is the same for Mac OS. Here is a snippet with the function from Mac OS. A possible fix might be to use the function |
@Pletron Thanks for the description; your pastebin snippet refers to the super-class basic_streambuf. The comment suggests that deriving subclasses shall overwrite that behavior. Can you verify that stringstream is indeed not overwriting that behavior? |
@Pletron The lines 212 and 227 could also be changed with an #ifdef directive separating MacOS/Win from "correct" implementations by simply copying the content from vector into bufferIn (even though that might be expensive). |
I've traced a
ConnectionTestSuite.h
timeout failure to one line of code.This line hangs when the testsuite runs. This results in a testsuite timeout without any Errors other than a timeout in accordance to this variable.
More specifically I believe it is a bug related to function
ssize_t send(int, const void *, size_t, int);
found in sys/socket.h.The text was updated successfully, but these errors were encountered: