login about faq

I'm trying to make a secure connection between a browser and an SSL server, using websocket.

When I connect using the method AcceptNextConnection I get Success but the browser is automatically disconnected after accept, instead of allowing use the socket

I got this from browser (Chorme 47.0.2526.73)

"WebSocket connection to 'wss: //192.168.0.26: 4502 /' failed: WebSocket handshake opening was canceled"

And this from Chilkat log (last release)

ChilkatLog:
  AcceptNextConnection(7020ms):
    DllDate: Oct 29 2015
    ChilkatVersion: 9.5.0.54
    UnlockPrefix: -
    Username: -
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 1
    objectId: 1
    listenPort: 4502
    acceptNextConnectionHB(7020ms):
      maxWaitMs: 0
      m_idleTimeoutMs: 10000
      scAcceptConnection(7020ms):
        Clearing TLS client certificates.
        acceptNextConnection(6974ms):
          Setting SO_SNDBUF size
          sendBufSize: 262144
          Setting SO_RCVBUF size
          recvBufSize: 4194304
        --acceptNextConnection
        serverHandshake(46ms):
          serverHandshake2(46ms):
            svrReadClientHello:
              readHandshakeMessages:
                processHandshakeRecord:
                  processHandshakeMessage:
                    processClientHello:
                      clientHelloExtensionsLen: 76
                      HelloExtension: renegotiation_info
                      HelloExtensionLen: 1
                      HelloExtension: 23
                      HelloExtensionLen: 0
                      HelloExtension: SessionTicket
                      HelloExtensionLen: 0
                      HelloExtension: signature_algorithms
                      HelloExtensionLen: 22
                      HelloExtension: status_request
                      HelloExtensionLen: 5
                      HelloExtension: next_protocol_negotiation
                      HelloExtensionLen: 0
                      HelloExtension: 18
                      HelloExtensionLen: 0
                      HelloExtension: 30032
                      HelloExtensionLen: 0
                      HelloExtension: ec_point_formats
                      HelloExtensionLen: 2
                      HelloExtension: elliptic_curves
                      HelloExtensionLen: 6
                    --processClientHello
                  --processHandshakeMessage
                --processHandshakeRecord
              --readHandshakeMessages
            --svrReadClientHello
            buildCertificatesMessage:
              numCerts: 3
            --buildCertificatesMessage
            svrProcessClientKeyExchange(31ms):
              modulus_bitlen: 2048
              bigEndian: 1
              padding: PKCS 1.5
              sizeAfterPkcs15_decode: 48
            --svrProcessClientKeyExchange
          --serverHandshake2
        --serverHandshake
      --scAcceptConnection
    --acceptNextConnectionHB
    Success.
  --AcceptNextConnection
  socketOptions:
    SO_SNDBUF: 262144
    SO_RCVBUF: 4194304
    TCP_NODELAY: 0
    SO_KEEPALIVE: 0
  --socketOptions
--ChilkatLog

If I try to connect from the connect method of the library it works correctly. But I need to use WebSocket for my project and I do not understand what is happening.

I greatly appreciate any help.

Cheers

asked Dec 11 '15 at 05:13

Mike86's gravatar image

Mike86
11

edited Dec 15 '15 at 05:24


Websockets is a protocol not implemented yet by Chilkat. See https://tools.ietf.org/html/rfc6455

link

answered Dec 15 '15 at 08:54

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×60
×56

Asked: Dec 11 '15 at 05:13

Seen: 794 times

Last updated: Dec 15 '15 at 08:54

powered by OSQA