RCA:
During the refactoring (#63),
the magic number = 1 for closing the socket for sending was
replaced with SD_RECEIVE, but it should have been replaced with SD_SEND.
The consequence was that the socket might have been closed
before the ok answered was sent to the database.
RCA: During the refactoring (#63), the magic number = 1 for closing the socket for sending was replaced with SD_RECEIVE, but it should have been replaced with SD_SEND. The consequence was that the socket might have been closed before the ok answered was sent to the database.
Fix: Replace SD_RECEIVE with SD_SEND