[ 
https://issues.apache.org/jira/browse/SLING-10580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379803#comment-17379803
 ] 

Ankita Agarwal commented on SLING-10580:
----------------------------------------

[~rombert] We get the below error in stderr.log when nmap command 
{color:#00875a}{{nmap -sT -p <controlPort> 127.0.0.1}}{color}{color:#57d9a3} 
{color}is executed. 
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control 
Listener@/127.0.0.1:63000] Failure reading from client
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control 
Listener@/127.0.0.1:63000] java.net.SocketException: Connection reset
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control 
Listener@/127.0.0.1:63000]        at 
java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
14.06.2021 04:51:36.765 *ERROR* [Apache Sling Control 
Listener@/127.0.0.1:63000]        at 
java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
It directly hits the line 
[https://github.com/apache/sling-org-apache-sling-launchpad-base/blob/master/src/main/java/org/apache/sling/launchpad/app/ControlListener.java#L286]
 and deletes the controlport config in the conf folder and then AEM shutdowns

> While receiving commands, SocketException is not handled in readline() 
> -----------------------------------------------------------------------
>
>                 Key: SLING-10580
>                 URL: https://issues.apache.org/jira/browse/SLING-10580
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>    Affects Versions: Launchpad Base 2.7.0
>            Reporter: Ankita Agarwal
>            Priority: Major
>             Fix For: Launchpad Base 2.7.2
>
>
> run a nmap command:
> {{nmap -sT -p <controlPort> 127.0.0.1}} 
> SocketException is thrown but it's not handled  in the readline()
> https://github.com/apache/sling-org-apache-sling-launchpad-base/blob/master/src/main/java/org/apache/sling/launchpad/app/ControlListener.java#L217



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to