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 Nov 11, 2023
1 parent 2010047 commit 0df2668
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 @@ -85,7 +85,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 @@ -315,7 +315,7 @@ private[spark] object JettyUtils extends Logging {
httpConfig.setRequestHeaderSize(requestHeaderSize)

// 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 0df2668

Please sign in to comment.