From 14174b2aded89e04fa935b121c475302bbd3b395 Mon Sep 17 00:00:00 2001 From: "nick.tessier" <22119573+nick4598@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:58:38 -0400 Subject: [PATCH 1/4] set curl buffersize to 10mb --- iModelCore/BeSQLite/SQLite/bcvutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iModelCore/BeSQLite/SQLite/bcvutil.c b/iModelCore/BeSQLite/SQLite/bcvutil.c index 33fe961ed4e..a1a5a1194ff 100644 --- a/iModelCore/BeSQLite/SQLite/bcvutil.c +++ b/iModelCore/BeSQLite/SQLite/bcvutil.c @@ -2309,6 +2309,7 @@ sqlite3_bcv_request *sqlite3_bcv_job_request( pNew->pNext = pJob->pPending; pNew->pJob = pJob; pNew->pCurl = curl_easy_init(); + curl_easy_setopt(pNew->pCurl, CURLOPT_BUFFERSIZE, 10 * 1024 * 1024); pJob->pPending = pNew; } return pNew; From c470a679ac185a8c5d60244e3496c23b37956b5b Mon Sep 17 00:00:00 2001 From: "nick.tessier" <22119573+nick4598@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:52:56 -0400 Subject: [PATCH 2/4] add 'bentley change' comment --- iModelCore/BeSQLite/SQLite/bcvutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iModelCore/BeSQLite/SQLite/bcvutil.c b/iModelCore/BeSQLite/SQLite/bcvutil.c index a1a5a1194ff..3fd67713d3b 100644 --- a/iModelCore/BeSQLite/SQLite/bcvutil.c +++ b/iModelCore/BeSQLite/SQLite/bcvutil.c @@ -2309,7 +2309,7 @@ sqlite3_bcv_request *sqlite3_bcv_job_request( pNew->pNext = pJob->pPending; pNew->pJob = pJob; pNew->pCurl = curl_easy_init(); - curl_easy_setopt(pNew->pCurl, CURLOPT_BUFFERSIZE, 10 * 1024 * 1024); + curl_easy_setopt(pNew->pCurl, CURLOPT_BUFFERSIZE, 10 * 1024 * 1024); // BENTLEY CHANGE pJob->pPending = pNew; } return pNew; From 46dc515626a573c569c1b011b271a11c967bae97 Mon Sep 17 00:00:00 2001 From: "nick.tessier" <22119573+nick4598@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:18:05 -0400 Subject: [PATCH 3/4] start the search for ports at 22003 instead of 22002 --- iModelCore/BeSQLite/SQLite/blockcachevfsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iModelCore/BeSQLite/SQLite/blockcachevfsd.c b/iModelCore/BeSQLite/SQLite/blockcachevfsd.c index f96c8507c44..33197663cb1 100644 --- a/iModelCore/BeSQLite/SQLite/blockcachevfsd.c +++ b/iModelCore/BeSQLite/SQLite/blockcachevfsd.c @@ -1242,7 +1242,7 @@ static void bdListen(DaemonCtx *p){ #endif for(i=0; icmd.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 ){ @@ -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 ); } From 375e48643ee8bb438acda645c9748b9f35a1165f Mon Sep 17 00:00:00 2001 From: "nick.tessier" <22119573+nick4598@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:24:24 -0400 Subject: [PATCH 4/4] remove buffersize change --- iModelCore/BeSQLite/SQLite/bcvutil.c | 1 - 1 file changed, 1 deletion(-) diff --git a/iModelCore/BeSQLite/SQLite/bcvutil.c b/iModelCore/BeSQLite/SQLite/bcvutil.c index 3fd67713d3b..33fe961ed4e 100644 --- a/iModelCore/BeSQLite/SQLite/bcvutil.c +++ b/iModelCore/BeSQLite/SQLite/bcvutil.c @@ -2309,7 +2309,6 @@ sqlite3_bcv_request *sqlite3_bcv_job_request( pNew->pNext = pJob->pPending; pNew->pJob = pJob; pNew->pCurl = curl_easy_init(); - curl_easy_setopt(pNew->pCurl, CURLOPT_BUFFERSIZE, 10 * 1024 * 1024); // BENTLEY CHANGE pJob->pPending = pNew; } return pNew;