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

web server handshake error #537

Open
KARTES25 opened this issue Apr 26, 2024 · 3 comments
Open

web server handshake error #537

KARTES25 opened this issue Apr 26, 2024 · 3 comments

Comments

@KARTES25
Copy link

KARTES25 commented Apr 26, 2024

net::ERR_SSL_BAD_RECORD_MAC_ALERT

OPENSSL_VERSION = 1.0.2l

web server has launched with option (worker_threads = 8)

at the page loading stage, after several page refresh calls, the server generates the error SSL_ERROR_BAD_MAC_ALERT

image

@KARTES25 KARTES25 changed the title WEB interface stops working via https after page refresh web server handshake error Apr 26, 2024
@komnotmr
Copy link

I got the same issue.
Reproducing:

  1. Put to static folder my SPA (about 20 items - fonts, js bundles, icons)
  2. Compile server WITH_OPENSSL
  3. Launch server (httpd example) with1 process and 8 threads
  4. Hold ctrl+R in browser (chrome/mozilla) for simulate much requests to static and dynamic routes
  5. Get bad mac alert error in browser

I suppose, there is mistake in nio.c which corrupts openssl ctx buffer. But i'm not shure

@ithewei
Copy link
Owner

ithewei commented Apr 26, 2024

I got the same issue. Reproducing:

  1. Put to static folder my SPA (about 20 items - fonts, js bundles, icons)
  2. Compile server WITH_OPENSSL
  3. Launch server (httpd example) with1 process and 8 threads
  4. Hold ctrl+R in browser (chrome/mozilla) for simulate much requests to static and dynamic routes
  5. Get bad mac alert error in browser

I suppose, there is mistake in nio.c which corrupts openssl ctx buffer. But i'm not shure

Also openssl version < 1.1.0?
I tested like this, used openssl 1.1.1, but no question.
Launch server (httpd example) with1 process and 8 threads

wrk -c 100 https://127.0.0.1:8443/
ab -n 1000 https://127.0.0.1:8443/

@komnotmr
Copy link

komnotmr commented May 3, 2024

Hi! I've tryied both 1.1.1 and 3 versions. Results on the screenshot
image

With this versions server works more robust and processing all my requests from browser without issues.

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