amberframework / granite

ORM Model with Adapters for mysql, pg, sqlite in the Crystal Language.
MIT License
297 stars 87 forks source link

Getting WARNING: Unsupported BIO ctrl call (76) message #458

Closed emanzx closed 2 years ago

emanzx commented 3 years ago

My apps keep throwing this error while granite is connecting to the postgres server to send data.

[Sender] Curent time start sending data 2021-11-10 13:36:43 +08:00
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (73)
...
WARNING: Unsupported BIO ctrl call (73)
WARNING: Unsupported BIO ctrl call (76)
WARNING: Unsupported BIO ctrl call (76)
WARNING: Unsupported BIO ctrl call (76)
[Sender] [Fiber 6] Successfully upload [104] datapoint 2021-11-10 13:40:43 +08:00to timescaledb.

I try to look into it but no reference found and the only code I could locate it from crystal lang github which generate the error and it related to ssl implementation https://github.com/crystal-lang/crystal/blob/master/src/openssl/bio.cr

anyhelp that can help me

Blacksmoke16 commented 3 years ago

I would see if you can reproduce it with only https://github.com/will/crystal-pg. This doesn't seem like a Granite issue, but more so something going on in the underlying driver.

emanzx commented 3 years ago

I will try.. It may take a while..

PhilAtWysdom commented 2 years ago

This has something to do with hardware TLS offload support in OpenSSL and Crystal's binding to that functionality printing a debug message rather than handling it.

Blacksmoke16 commented 2 years ago

@crimson-knight, you can close this as it'll be fixed in 1.5.0 via https://github.com/crystal-lang/crystal/pull/12034.

crimson-knight commented 2 years ago

@Blacksmoke16 thanks for the heads up!