Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't connect to secure websocket server after receiving large json message
Forum Updated to NodeBB v4.3 + New Features

Can't connect to secure websocket server after receiving large json message

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 785 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hans Hupe
    wrote on last edited by
    #1

    Hello,

    I implemented a SSL websocket server based on the example (SSL Echo Server Example) and generated my certificates with OpenSSL. It works basically, but unfortunately after the client sends a larger message (like 5MB) my websocket server doesn't allow any connections anymore. I don't get any error message, my client just sees the "connecting..." message.

    It takes more or less 1 minute to receive the whole message for the websocket server. The entire message was received correctly, but afterwards no new connections are possible.

    I noticed that problem since I used SSL websocket instead of unsecure websocket.

    Any ideas what could be the problem here? thanks

    jsulmJ 1 Reply Last reply
    0
    • H Hans Hupe

      Hello,

      I implemented a SSL websocket server based on the example (SSL Echo Server Example) and generated my certificates with OpenSSL. It works basically, but unfortunately after the client sends a larger message (like 5MB) my websocket server doesn't allow any connections anymore. I don't get any error message, my client just sees the "connecting..." message.

      It takes more or less 1 minute to receive the whole message for the websocket server. The entire message was received correctly, but afterwards no new connections are possible.

      I noticed that problem since I used SSL websocket instead of unsecure websocket.

      Any ideas what could be the problem here? thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Hans-Hupe What does the server do with the message? Maybe it's hanging?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • H Offline
        H Offline
        Hans Hupe
        wrote on last edited by
        #3

        No it's not hanging. The server receives the entire message, parses it correctly and continues the workflow as expected. But the websocket server is not reachable any more. This behaviour is not always reproduceable, but after my observations it's clearly related to the big json message.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved