stealthcopter / AndroidNetworkTools

Set of useful android network tools
Apache License 2.0
1.39k stars 282 forks source link

Synchronously single port scan setTimeOutMillis does not work #17

Closed geckogecko closed 6 years ago

geckogecko commented 6 years ago

I am trying to scan a single port synchronously with:

ArrayList<Integer> openPorts = PortScan
                        .onAddress("address")
                        .setTimeOutMillis(1000)
                        .setPort(4000)
                        .doScan();

If the port to scan is closed/down this call hangs for multiple minutes and does not time out after 1000ms like expected.

Version: 0.2.1

stealthcopter commented 6 years ago

Awesome work, just merged it in. Thanks @geckogecko