Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

errors only in Release mode #45

Open
Lucamiz01 opened this issue Oct 4, 2016 · 7 comments
Open

errors only in Release mode #45

Lucamiz01 opened this issue Oct 4, 2016 · 7 comments

Comments

@Lucamiz01
Copy link

Hi,
we are developing a Secure WebSocket Server making use of this brillant project. It works fine receiving and sending messages to various clients, but, when the time-delay of received messages goes down to less than 300 ms (or more) it starts behaving strangely, giving out errores and closing the connection. The strangest thing is that it fails only when in release configuration (in Debug Mode no error whatsoever). It seems to be non related to the part of the server we wrote. The error codes are the following:
10053
10054
336151548.

@eidheim
Copy link
Owner

eidheim commented Oct 4, 2016

What OS and compiler are you using?

@Lucamiz01
Copy link
Author

This is Windows 8 (but on Windows 10 we observe the same behaviour) and the compiler is Visual Studio's 2015 one. So Microsoft (R) C/C++ Optimizing Compiler Version 19 (both in x86 or x64)

@eidheim
Copy link
Owner

eidheim commented Oct 4, 2016

Could you try reproduce the errors on Linux using g++? Just to rule out that it us not a Windows issue. Most server libraries are typically not very well tested on Windows. Also try compile 64 bit if you are not doing so already.

@Lucamiz01
Copy link
Author

We tried 64 bit already with no success (same problem). We are trying to compile in g++ but I think we have some non-cross platform code inside (maibe we can try to cut that out). Still trying.

@eidheim
Copy link
Owner

eidheim commented Oct 5, 2016

Thank you, and since it might be a VC release build issue, you could try enable/disable the various flags that are added when you choose release build. That is, to see what compiler flag(s) is causing the issue.

@Lucamiz01
Copy link
Author

It turns out it is some sort of memory corruption due to another package we were using. We are still investigating the problem anyway. Possibily the memory initialization in the Debug Mode was enough to make it work in Debug Mode and not work in Release.

@eidheim
Copy link
Owner

eidheim commented Oct 6, 2016

Happy to hear you are getting closer to a solution.

andylhxu pushed a commit to andylhxu/Simple-WebSocket-Server that referenced this issue Apr 26, 2017
andylhxu pushed a commit to andylhxu/Simple-WebSocket-Server that referenced this issue Apr 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants