Skip to content

Commit

Permalink
Fix 3272: '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 Jan 26, 2021
1 parent 96bfd0c commit aa5fdcf
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 aa5fdcf

Please sign in to comment.