Skip to content

Commit

Permalink
SPARK-45522: Updat ssl server changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HiuKwok committed Jan 21, 2024
1 parent 5ac5460 commit 59809f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SSLOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private[spark] case class SSLOptions(
/**
* Creates a Jetty SSL context factory according to the SSL settings represented by this object.
*/
def createJettySslContextFactory(): Option[SslContextFactory] = {
def createJettySslContextFactoryServer(): Option[SslContextFactory.Server] = {
if (enabled) {
val sslContextFactory = new SslContextFactory.Server()

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/ui/JettyUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private[spark] object JettyUtils extends Logging {
httpConfig.setSendXPoweredBy(false)

// If SSL is configured, create the secure connector first.
val securePort = sslOptions.createJettySslContextFactory().map { factory =>
val securePort = sslOptions.createJettySslContextFactoryServer().map { factory =>

val securePort = sslOptions.port.getOrElse(if (port > 0) Utils.userPort(port, 400) else 0)
val secureServerName = if (serverName.nonEmpty) s"$serverName (HTTPS)" else serverName
Expand Down

0 comments on commit 59809f6

Please sign in to comment.