https://linen.dev logo
#help
Title
# help
t

Troy Snowden

03/25/2024, 10:30 AM
Hi there, I’m looking to configure the httpServerFactory in my wiremock instance which is running via a Dockerfile. Anyone any ideas on how I could do this? Thank you
for a bit more context, I’m looking to apply this workaround (https://github.com/wiremock/wiremock/issues/2585) to a Docker wiremock container. Thanks
t

Tom

03/25/2024, 12:31 PM
HttpServerFactory
is an extension so you can create your own, package it in a JAR file with a service definition and mount it under the extensions folder in the docker container. Example of an
ExtensionFactory
service definition: https://github.com/wiremock/wiremock-grpc-extension/blob/main/src/main/resources/M[…]ices/com.github.tomakehurst.wiremock.extension.ExtensionFactory (you can also just use
Extension
if you only have a single extension to initialise)
t

Troy Snowden

03/25/2024, 3:03 PM
Ah great, thanks @Tom!
👍 1
Sorry one more, is there an example of using Extension to create a new one? Thanks
Found one, thanks still.
👍 1
t

Troy Snowden

04/04/2024, 1:26 PM
Hi Tom, sorry haven’t been able to look at this since your reply but I’ve just added the extension I created to the docket file and it doesn’t seem to be working as I’d hoped (resolving the issue with large SOAP requests). Are there any plans to try and resolve this issue soon? Thanks
t

Tom

04/04/2024, 2:08 PM
WireMock 3.5.2 lets you disable HTTP/2 on startup, which I suggest you do for now
The core issue is quite knotty. Seems some clients try to do an HTTP 1.1->2 upgrade when they shouldn’t and Jetty can’t handle it.
https://github.com/jetty/jetty.project/issues/11588 if you’re interested in the details
42 Views