In case of client mode App Master and Driver are in different JVM process,the port opened by the Driver is vulnerable for flooding attacks as it is not closing the IDLE connections.
I am thinking to fix this issue using below mechanism 1.Expose configuration to close the IDLE connections as secondary developers can decide based on their use case 2.Maintain the SET of validConnections,the condition for validConnections is *TransportChannelHandler.channelRead* event will be fired for the valid connections. 3.Whenever there is timeout(no communication happened across the channel for x time),close the connection. if !validConnectionSet then close the connection Note: Timeout value is configurable using the config "spark.network.timeout" can this solution be used to solve this issue,if any suggestions are also welcomed. Regards Sandeep -- Sent from: http://apache-spark-developers-list.1001551.n3.nabble.com/ --------------------------------------------------------------------- To unsubscribe e-mail: dev-unsubscr...@spark.apache.org