Github user zentol commented on the issue:
https://github.com/apache/flink/pull/4586
This is rather odd. This minimal example does fail as expected:
```
public static void main(String[] args) throws IOException {
HTTPServer s1 = null;
HTTPServer s2 = null;
try {
s1 = new HTTPServer(9010);
s2 = new HTTPServer(9010);
} finally {
if (s1 != null) {
s1.stop();
}
if (s2 != null) {
s2.stop();
}
}
}
```---
