* @return a reference to the server that has been poisoned. Use this reference to kill the server after use.
*/
public static Server poisonTheServer(int serverIndex, int type) throws Exception
{
insureStarted(serverIndex);
Server poisoned = servers[serverIndex].getServer();
// We set the server to null so it can be recreated again, but ONLY for those poisons that cause the server to get
// killed
// We do not do this for other poisons that don't
if (type != PoisonInterceptor.LONG_SEND && type != PoisonInterceptor.NULL)
{
servers[serverIndex] = null;
}
poisoned.poisonTheServer(type);
return poisoned;
}