Skip to content

Commit

Permalink
DUBBO-501 随机端口改为在缺省端口的基础上增长
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfei0201 committed Jul 18, 2012
1 parent bf0eee9 commit 7af4bc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static int getAvailablePort(int port) {
ServerSocket ss = null;
try {
ss = new ServerSocket(i);
return ss.getLocalPort();
return i;
} catch (IOException e) {
// continue
} finally {
Expand Down

0 comments on commit 7af4bc6

Please sign in to comment.