Skip to content
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

Receiving data in GUI often hangs on Windows #168

Open
GeoffSmith13 opened this issue Jan 8, 2020 · 0 comments
Open

Receiving data in GUI often hangs on Windows #168

GeoffSmith13 opened this issue Jan 8, 2020 · 0 comments

Comments

@GeoffSmith13
Copy link

GeoffSmith13 commented Jan 8, 2020

Roughly 50% of the time when stopping the capture and starting the data receiving stage, it gets stuck. It looks like the problem might be in SocketListener::listenCapture(), specifically calling m_easySocket.receive(). The receive function will always return a -1 when it hangs like this.

The code block being referred to is this:

while (bytes < sizeof(profiler::net::Message))
{
    int receivedBytes = m_easySocket.receive(buffer + seek + bytes, buffer_size);
    if (receivedBytes < 1)
    {
        bytes = receivedBytes;
        break;
    }
    bytes += receivedBytes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant