Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CloudSQLite daemon begin its port search starting at 22003 instead of 22002 #873

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions iModelCore/BeSQLite/SQLite/blockcachevfsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ static void bdListen(DaemonCtx *p){
#endif

for(i=0; i<nAttempt; i++){
int iPort = p->cmd.iPort ? p->cmd.iPort : 22002+i;
int iPort = p->cmd.iPort ? p->cmd.iPort : 22003+i; // BENTLEY CHANGE
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
if( p->cmd.zAddr ){
Expand All @@ -1266,7 +1266,7 @@ static void bdListen(DaemonCtx *p){
}

fatal_error("failed to bind to localhost port - tried %d to %d",
22002, 22002+nAttempt-1
22003, 22003+nAttempt-1 // BENTLEY CHANGE
);
}

Expand Down