Skip to content

Commit

Permalink
Date accessed should only be updated when cluster is ready (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkumra-broad authored May 30, 2018
1 parent 72ebd3c commit d930ec0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ class ProxyService(proxyConfig: ProxyConfig,

private def proxyInternal(userInfo: UserInfo, googleProject: GoogleProject, clusterName: ClusterName, request: HttpRequest): Future[HttpResponse] = {
logger.debug(s"Received proxy request for user user $userInfo")
clusterDateAccessedActor ! UpdateDateAccessed(clusterName, googleProject, Instant.now())
getTargetHost(googleProject, clusterName) flatMap {
case ClusterReady(targetHost) =>
clusterDateAccessedActor ! UpdateDateAccessed(clusterName, googleProject, Instant.now())
// If this is a WebSocket request (e.g. wss://leo:8080/...) then akka-http injects a
// virtual UpgradeToWebSocket header which contains facilities to handle the WebSocket data.
// The presence of this header distinguishes WebSocket from http requests.
Expand Down

0 comments on commit d930ec0

Please sign in to comment.