|
@@ -202,6 +202,7 @@ namespace Shadowsocks.Controller |
|
|
try
|
|
|
try
|
|
|
{
|
|
|
{
|
|
|
int bytesRead = conn.EndReceive(ar);
|
|
|
int bytesRead = conn.EndReceive(ar);
|
|
|
|
|
|
if (bytesRead <= 0) goto Shutdown;
|
|
|
foreach (IService service in _services)
|
|
|
foreach (IService service in _services)
|
|
|
{
|
|
|
{
|
|
|
if (service.Handle(buf, bytesRead, conn, null))
|
|
|
if (service.Handle(buf, bytesRead, conn, null))
|
|
@@ -209,6 +210,7 @@ namespace Shadowsocks.Controller |
|
|
return;
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Shutdown:
|
|
|
// no service found for this
|
|
|
// no service found for this
|
|
|
if (conn.ProtocolType == ProtocolType.Tcp)
|
|
|
if (conn.ProtocolType == ProtocolType.Tcp)
|
|
|
{
|
|
|
{
|
|
|