mock tcp connection, response not terminated

28 views
Skip to first unread message

Kelly Goedert

unread,
Oct 26, 2023, 8:49:29 AM10/26/23
to mountebank-discuss
Hello,

I am trying to use mountebank to mock a tcp connection. In my application I am trying to read the response using:

BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
String result = reader.lines().collect(Collectors.joining("\n"));

but the stream seems to be stuck trying to read the response. If I shut down mountebank, the response is received correctly.

What am I missing? How can I signal the response ended?

Thank you
Reply all
Reply to author
Forward
0 new messages