Skip to content

Commit

Permalink
Adopt OutputStream buffer in collocated request handler - Fix zeroc-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Jan 27, 2025
1 parent bd5d7aa commit 3a679ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ jobs:
- os: macos-15
config: "ios"
build_flags: "PLATFORMS='macosx iphonesimulator' CONFIGS='static shared' LANGUAGES='cpp swift'"
# Remove rfilter swift/Ice/operations once #3286 is fixed
# swift/Ice/udp doesn't work on CI
test_flags: "--languages='cpp,swift' --platform=iphonesimulator --controller-app --rfilter=swift/Ice/operations --rfilter=swift/Ice/udp"
# TODO swift/Ice/udp doesn't work on CI
test_flags: "--languages='cpp,swift' --platform=iphonesimulator --controller-app --rfilter=swift/Ice/udp"
build_cpp_and_python: true

# Static builds
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/Ice/CollocatedRequestHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ CollocatedRequestHandler::invokeAsyncRequest(OutgoingAsyncBase* outAsync, int ba

outAsync->attachCollocatedObserver(_adapter, requestId);

InputStream is{_reference->getInstance().get(), os->getEncoding(), *os, false};
// Adopt the OutgoingAsync output stream buffer, to ensure it's not deleted before the request is dispatched.
InputStream is{_reference->getInstance().get(), os->getEncoding(), *os, true};

if (batchRequestCount > 0)
{
Expand Down

0 comments on commit 3a679ac

Please sign in to comment.