Closed neoistheone123 closed 8 years ago
There is only one server for each IP/Port combination.
I have used different ports for each IHttpServer object. IP is localhost.
Could you please send a test suite that reproduces the issue ?
IHttpServer serverA=null, serverB=null, serverC=null;
try{ serverA = createA(); serverB = createB(); serverC= createC(); action.Invoke(); } finally{ serverA.Dispose(); serverB.Dispose() serverC.Dispose(); }
I'll need the full code :) What is inside createA() ...
I'm not allowed to release the code. I've written some tests around it. I've been able to narrow it down to FactoryGirl. Thanks for your input!
I noticed that calling dispose on one server, disposes the other servers. I verified with IsAvailable that the other servers were shutdown.
public void Dispose() { if (_scheduler != null) { _scheduler.Stop(); _scheduler.Dispose(); } if (_disposableServer != null) { _disposableServer.Dispose(); } }
_disposableServer = KayakServer.Factory .CreateHttp(_requestProcessor, _scheduler) .Listen(ipEndPoint);
Seems to be due to same IP?