initial attempt at socket pooling -- DOES NOT WORK -- EVIL CODE -- DO NOT RUN LIVE -- etc

This commit is contained in:
krrios 2007-04-25 05:54:23 +00:00
parent 699ce6b4b7
commit 2b54372249
3 changed files with 91 additions and 45 deletions

View file

@ -752,6 +752,25 @@ namespace Server.Network {
Dispose( true );
}
public static void TraceException( Exception ex ) {
try {
using ( StreamWriter op = new StreamWriter( "network-errors.log", true ) ) {
op.WriteLine( "# {0}", DateTime.UtcNow );
op.WriteLine( ex );
op.WriteLine();
op.WriteLine();
}
} catch {
}
try {
Console.WriteLine( ex );
} catch {
}
}
private bool m_Disposing;
public virtual void Dispose( bool flush ) {