initial attempt at socket pooling -- DOES NOT WORK -- EVIL CODE -- DO NOT RUN LIVE -- etc
This commit is contained in:
parent
699ce6b4b7
commit
2b54372249
3 changed files with 91 additions and 45 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue