You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/deps/mariadb-client-library/net.c.patch

22 lines
783 B

@@ -224,16 +224,16 @@
/* see conc-71: we need to check the socket status first:
if the socket is dead we set net->error, so net_flush
will report an error */
- while (net_check_socket_status(net->vio->sd))
- {
+// while (net_check_socket_status(net->vio->sd))
+// {
/* vio_read returns size_t. so casting to long is required to check for -1 */
- if ((long)vio_read(net->vio, (gptr)net->buff, (size_t) net->max_packet) <= 0)
+/* if ((long)vio_read(net->vio, (gptr)net->buff, (size_t) net->max_packet) <= 0)
{
net->error= 2;
DBUG_PRINT("info", ("socket disconnected"));
DBUG_VOID_RETURN;
}
- }
+ } */
net->compress_pkt_nr= net->pkt_nr=0; /* Ready for new command */
net->write_pos=net->buff;
DBUG_VOID_RETURN;