Commit dc344072 authored by Honfika's avatar Honfika

fix

parent 7980a5a1
......@@ -159,7 +159,18 @@ namespace Titanium.Web.Proxy
}
prefetchTask = null;
}
if (connection != null)
{
var socket = connection.TcpSocket;
bool part1 = socket.Poll(1000, SelectMode.SelectRead);
bool part2 = socket.Available == 0;
if (part1 & part2)
{
//connection is closed
connection = null;
}
}
// create a new connection if cache key changes.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment