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

Connecting using http to ssl port causes mongoose to infinite and CPU usage high #656

Closed
sswork opened this issue May 9, 2016 · 5 comments
Assignees

Comments

@sswork
Copy link

sswork commented May 9, 2016

If mongoose is configure to serve both http and https, then connecting to the https port using http in the browser causes mongoose hang or cpu usage high.

For example, if mongoose is set up to serve http on port 8081 and https on 8082:
http://localhost:8081 ==> works fine
https://localhost:8082 ==> works fine
http://localhost:8082 ==> request goes infinite

  • MONGOOSE_VERSION "5.2"

Please help me to resolve this issue.

@pjg864
Copy link

pjg864 commented May 11, 2016

@sswork I have the same problem.

@mkmik mkmik self-assigned this May 11, 2016
@mkmik
Copy link
Contributor

mkmik commented May 11, 2016

This is a quite old version. Can you try to upgrade ?
@sswork, which platform ?

@pjg864 do you also run version 5.2 ?

@sswork
Copy link
Author

sswork commented May 23, 2016

@mmikulicic
Thank you for your reply.

Unfortunately, we could not update the version, as we customized it according to our requirement.
Therefore could you please guide me to resolved this issue?

And regarding platform, we are using mongoose-cpp with windows and raspberry pi 2.

@mkmik
Copy link
Contributor

mkmik commented May 23, 2016

Yeah, upgrading to 6.x might be a big effort, but 5.2 is quite old in the 5.x line as well (>2 years).
Please try upgrading to 5.6 or some earlier version.

If it's not possible, then please take a look at the git commit history for commits more recent than
7380c65 (the 5.2 release).

Look for some relevant bug fix, for example 27c6656 might look relevant (fix of SSL accept).

Unfortunately we have no resources to do that archeology work for you; it's a pretty old version and the bug has been fixed long ago. I hope I put you on the right track though.

If you need commercial support feel free to contact our sales https://www.cesanta.com/contact.

@mkmik mkmik closed this as completed May 23, 2016
@sswork
Copy link
Author

sswork commented May 24, 2016

Actually we are using mongoose as a WebDAV.
We want to move/rename WebDAV files by the requests.
does the latest mongoose supports WebDAV server functionality with SSL support?
In addition, could you please provide me the example source code for testing?

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

3 participants