MDEV-39473: main.mdev375, main.connect fail on macOS#5008
MDEV-39473: main.mdev375, main.connect fail on macOS#5008DaveGosselin-MariaDB wants to merge 1 commit into10.11from
Conversation
When the server rejects a connection because connection_count exceeds the maximum allowed, the server will send ER_CON_COUNT_ERROR and immediately close the socket. On macOS, the client's recv() of that error packet sometimes fails with errno EINVAL before the packet is actually delivered, surfacing as CR_SERVER_LOST instead of ER_CON_COUNT_ERROR. Update the tests to account for this possibility.
@DaveGosselin-MariaDB and that's a bug, isn't it? |
@DaveGosselin-MariaDB missing |
Thanks @svoj I'll take another look into it. |
|
@DaveGosselin-MariaDB Thank you for taking care of it! It might not be the |
When the server rejects a connection because connection_count exceeds the maximum allowed, the server will send ER_CON_COUNT_ERROR and immediately close the socket. On macOS, the client's recv() of that error packet sometimes fails with errno EINVAL before the packet is actually delivered, surfacing as CR_SERVER_LOST instead of ER_CON_COUNT_ERROR. Update the tests to account for this possibility.