Partial fix for bug #15926, flushing TCP output in do_close().
This commit is contained in:
@@ -763,6 +763,9 @@ do_close(struct api_msg_msg *msg)
|
||||
if (msg->conn->pcb.tcp->state == LISTEN) {
|
||||
err = tcp_close(msg->conn->pcb.tcp);
|
||||
}
|
||||
else if (msg->conn->pcb.tcp->state == CLOSE_WAIT) {
|
||||
err = tcp_output(msg->conn->pcb.tcp);
|
||||
}
|
||||
msg->conn->err = err;
|
||||
#endif
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user