View Single Post
Old 03-07-2018, 11:25 PM   #1
Naenyn
Member
Naenyn began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2018
Device: none
Exclamation Accessing Calibre running SSL via HTTP breaks the server

Hello!

I recently got myself a cert and have been working to secure the various services I run, one of those being Calibre. I added my cert/key to Calibre and everything works great when accessed from a browser via https. However, if I try to hit the server afterwards via http, I get the following:

Code:
Error in ServerLoop.tick
Traceback (most recent call last):
  File "site-packages/calibre/srv/loop.py", line 460, in serve
  File "site-packages/calibre/srv/loop.py", line 518, in tick
  File "site-packages/calibre/srv/loop.py", line 273, in drain_ssl_buffer
  File "site-packages/calibre/srv/loop.py", line 83, in recv_from
  File "ssl.py", line 771, in recv_into
  File "ssl.py", line 641, in read
SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1754)
After that, the server becomes unresponsive via https or http. I have to bounce it to get things working again.

Any idea what is wrong?

Edit: btw, I'm running Calibre 3.18.0 on Ubuntu 17.10.

Last edited by Naenyn; 03-07-2018 at 11:46 PM. Reason: Adding versions
Naenyn is offline   Reply With Quote