mirromutth / r2dbc-mysql

R2DBC MySQL Implementation
Apache License 2.0
656 stars 98 forks source link

Socket Read timeout Error #230

Open hongjunan opened 2 years ago

hongjunan commented 2 years ago

Hi

Current release version has a bug. There are no Socket Timeout. Even, 0.9.0 SNAPSHOT has same bug. see this commit -> https://github.com/mirromutth/r2dbc-mysql/commit/dd8f553c91dbe6e48b34ce005004b480ce6ddad3 SO_TIMEOUT is OIO setting value. Unknown channel option 'SO_TIMEOUT' for channel it is NOT for reactor Netty!!

please read below document https://projectreactor.io/docs/netty/release/reference/index.html#_lifecycle_callbacks_2

here is sample code tcpClient.doOnConnected { it.addHandler(ReadTimeoutHandler(connectTimeout.toMillis(), TimeUnit.MILLISECONDS)) }

please fix ASAP.

Thank you!