Hang when GTcpConnection.graceful-disconnect true and connection is dropped
@mjog
Submitted by Michael Gratton Link to original bug (#757091)
Description
If a GTcpConnection instance has graceful-disconnect set to true and the connection is dropped without the remote end closing it, then closing the connection will be blocked until some timeout is reached. If this occurs as a result of a main loop source being destroyed, then this will cause an app's GUI to hang.
Perhaps g_tcp_connection_close should check to see if the connection is still open before attempting a graceful shutdown?
As seen in Bug 757088.
Version: 2.46.x