Fixed bug with restarting supervised supervisor that had done linking in constructor + Changed all calls to EventHandler to use direct 'error' and 'warning' methods for improved performance
This commit is contained in:
parent
5ddc880199
commit
a5a21e9f4a
3 changed files with 8 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
package akka.http
|
||||
|
||||
import akka.actor.{ActorRegistry, ActorRef, Actor}
|
||||
import akka.actor.{EventHandler}
|
||||
import akka.actor.EventHandler
|
||||
|
||||
import javax.servlet.http.{HttpServletResponse, HttpServletRequest}
|
||||
import javax.servlet.http.HttpServlet
|
||||
|
|
@ -389,7 +389,7 @@ trait RequestMethod {
|
|||
}
|
||||
} catch {
|
||||
case io: Exception =>
|
||||
EventHandler notify EventHandler.Error(io, this)
|
||||
EventHandler.error(io, this, io.getMessage)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
@ -408,7 +408,7 @@ trait RequestMethod {
|
|||
}
|
||||
} catch {
|
||||
case io: IOException =>
|
||||
EventHandler notify EventHandler.Error(io, this)
|
||||
EventHandler.error(io, this, io.getMessage)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ package akka.http
|
|||
import javax.servlet. {AsyncContext, AsyncListener, AsyncEvent};
|
||||
import Types._
|
||||
|
||||
import akka.actor.{EventHandler}
|
||||
import akka.actor.EventHandler
|
||||
|
||||
/**
|
||||
* @author Garrick Evans
|
||||
|
|
@ -35,8 +35,8 @@ trait Servlet30Context extends AsyncListener {
|
|||
true
|
||||
}
|
||||
catch {
|
||||
case ex: IllegalStateException =>
|
||||
EventHandler notify EventHandler.Error(ex, this)
|
||||
case e: IllegalStateException =>
|
||||
EventHandler.error(e, this, e.getMessage)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
package akka.security
|
||||
|
||||
import akka.actor.{Scheduler, Actor, ActorRef, ActorRegistry, IllegalActorStateException}
|
||||
import akka.actor.{EventHandler}
|
||||
import akka.actor.EventHandler
|
||||
import akka.actor.Actor._
|
||||
import akka.config.Config
|
||||
|
||||
|
|
@ -369,7 +369,7 @@ trait SpnegoAuthenticationActor extends AuthenticationActor[SpnegoCredentials] {
|
|||
Some(UserInfo(user, null, rolesFor(user)))
|
||||
} catch {
|
||||
case e: PrivilegedActionException => {
|
||||
EventHandler notify EventHandler.Error(e, this)
|
||||
EventHandler.error(e, this, e.getMessage)
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue