Skip to content

Commit

Permalink
Fix 3273: 'POLLHUP' should always be check in 'read_from_net' to veri…
Browse files Browse the repository at this point in the history
…fy socket is still open
  • Loading branch information
JavierJF committed Feb 9, 2021
1 parent d5a5589 commit c69685d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/mysql_data_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,11 @@ int MySQL_Data_Stream::read_from_net() {
//proxy_info("Entering\n");
}
if ((revents & POLLIN)==0) return 0;
if (revents & POLLHUP) {
shut_soft();
return -1;
}

int r=0;
int s=queue_available(queueIN);
if (encrypted) {
Expand Down

0 comments on commit c69685d

Please sign in to comment.