@@ -531,9 +531,12 @@ kj::Own<kj::AsyncIoStream> Socket::takeConnectionStream(jsg::Lock& js) {
531531// Implementation of the custom factory for creating WorkerInterface instances from a socket
532532class StreamOutgoingFactory final : public Fetcher::OutgoingFactory, public kj::Refcounted {
533533 public:
534- StreamOutgoingFactory (kj::Own<kj::AsyncIoStream> stream, const kj::HttpHeaderTable& headerTable)
534+ StreamOutgoingFactory (kj::Own<kj::AsyncIoStream> stream,
535+ kj::EntropySource& entropySource,
536+ const kj::HttpHeaderTable& headerTable)
535537 : stream(kj::mv(stream)),
536- httpClient (kj::newHttpClient(headerTable, *this ->stream)) {}
538+ httpClient (
539+ kj::newHttpClient (headerTable, *this ->stream, {.entropySource = entropySource})) {}
537540
538541 kj::Own<WorkerInterface> newSingleUseClient (kj::Maybe<kj::String> cfStr) override ;
539542
@@ -621,7 +624,7 @@ jsg::Promise<jsg::Ref<Fetcher>> SocketsModule::internalNewHttpClient(
621624
622625 // Create our custom factory that will create client instances from this socket
623626 kj::Own<Fetcher::OutgoingFactory> outgoingFactory = kj::refcounted<StreamOutgoingFactory>(
624- socket->takeConnectionStream (js), ioctx.getHeaderTable ());
627+ socket->takeConnectionStream (js), ioctx.getEntropySource (), ioctx. getHeaderTable ());
625628
626629 // Create a Fetcher that uses our custom factory
627630 auto fetcher = js.alloc <Fetcher>(
0 commit comments