Skip to content

Commit

Permalink
Merge pull request #454 from zxy0728/master
Browse files Browse the repository at this point in the history
If multi MA start in the same port, the failure MA will be exit
  • Loading branch information
zengli00 authored Nov 30, 2018
2 parents feaa4bf + 764f673 commit 1bbecb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void start(Executor executor, int port, int backlog, boolean forceExit) {
server = HttpServer.create(isa, backlog);

}
catch (IOException e) {
catch (Exception e) {

log.err(this, "HttpServiceComponent[" + this.cName + "] for feature[" + this.feature + "] starts FAIL.", e);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public void start(int port, int backlog, int listenThreadCount, int handleThread
+ "] started SUCCESS: port=" + this.port);
}
}
catch (InterruptedException e) {
catch (Exception e) {
log.err(this, "HttpServiceComponent[" + this.cName + "] for feature[" + this.feature + "] starts FAIL.", e);

if (forceExit == true) {
Expand Down

0 comments on commit 1bbecb1

Please sign in to comment.