# Swi webserver and ssl

**URL:** <https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742>\
**Category:** General\
**Created:** [August 3, 2020, 6:05am UTC](https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742 "2020-08-03T06:05:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drspro](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/drspro/32/3509_2.png) [@drspro](https://swi-prolog.discourse.group/u/drspro)\
**Post date:** [August 3, 2020, 6:05am UTC](https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742/1 "2020-08-03T06:05:57Z")

</div>

dear swi prolog,

I am using swi-prolog as a webserver, it uses SSL certificates and it seems to work very good,

although it keeps running and serving data, in the console the server gives error messages

i try to attach here in this message a graphical screen shot of the screen capture of the swi console

 ![SSl_error_forum](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/5/59807c9962630d79858882d1e372a12a3810a87e.png)

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [August 5, 2020, 2:06pm UTC](https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742/2 "2020-08-05T14:06:31Z")

</div>

Please copy/paste messages as text. It is easier and they become searchable.

This is innocent. Typically this is caused by a browser that aborts some connection (for example when switching from a page or reloading a page before the load is finished) before the TLS handshake is completed.

Possibly these should be suppressed, although such messages can be helpful if some client fails to connect.

---

<div class="post-metadata">

**Author:** ![drspro](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/drspro/32/3509_2.png) [@drspro](https://swi-prolog.discourse.group/u/drspro)\
**Post date:** [August 10, 2020, 12:38pm UTC](https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742/3 "2020-08-10T12:38:28Z")

</div>

dear forum and Jan,

thankyou for your effort and information.

these below are the messages in text from the swi prolog console for this subject,  
I created a web server on ubuntu with swi-prolog as data server, and also  
I implemented the chat-server on the site through the swi websocket examples  
it took me a few days to get everything working, therefore i was offline,

[https://www.webparadigm.nl](https://www.webparadigm.nl)

chatroom:

[https://www.webparadigm.nl/gymchat/mroom.htm?appdir=kpb](https://www.webparadigm.nl/gymchat/mroom.htm?appdir=kpb)

ERROR: [Thread httpsd8443\_1] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_5] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_4] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_1] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_5] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_3] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_2] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_4] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_1] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_5] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_3] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_2] SSL(14209102) tls\_early\_post\_process\_client\_hello: unsupported protocol  
ERROR: [Thread httpsd8443\_3] SSL(1408F10B) ssl3\_get\_record: wrong version number  
ERROR: [Thread httpsd8443\_5] SSL(1408F09B) ssl3\_get\_record: https proxy request  
ERROR: [Thread httpsd8443\_2] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_4] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_2] SSL(1408F09C) ssl3\_get\_record: http request  
ERROR: [Thread httpsd8443\_1] SSL(1408F09C) ssl3\_get\_record: http request

---

<div class="post-metadata">

**Author:** ![drspro](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/drspro/32/3509_2.png) [@drspro](https://swi-prolog.discourse.group/u/drspro)\
**Post date:** [August 20, 2020, 2:07pm UTC](https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742/4 "2020-08-20T14:07:18Z")

</div>

is use 2 swi-prolog server instances, 1 for web socket chat server and 1 as data -server,

in de chat-server console it gives these messages, they are different form the previous ones, therefore i post them ,

* * *

Warning: [Thread 27] websocket:ws\_send/1: I/O error in write on stream (0x7fc95801fba0) (Broken pipe)  
Warning: [Thread 24] websocket:ws\_send/1: I/O error in write on stream (0x7fc970019eb0) (Broken pipe)

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [August 20, 2020, 2:22pm UTC](https://swi-prolog.discourse.group/t/swi-webserver-and-ssl/2742/5 "2020-08-20T14:22:07Z")

</div>

Broken pipe means the other end (browser) closes the connection unexpectedly. In the context of web sockets this typically indicate you close the websocket (leave the page) without doing the websocket close sequence. Another reason for this message is a network error.

The latter is fully harmless. The former can be avoided by nicely closing the websocket.
