You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm a little stuck right now. I'm runing a java application inside a docker container and I want to send a command to it. I'm using the following code to attach to the container:
Everything works fine and I can receive data written to stdout/stderr. But when I try to send data to the stdout stream the data is not received by the application until the application sends out a message to std out/err. I'm currently not sure if this is an issue on my end and I'm hoping someone can help me with this. Thanks in advance!
I went a bit further into this issue. It looks like the FramedInputStreamConsumer calls read on the response input stream of the request (which normally is correct). But it locks the underlying Channel waiting for input and releasing it's lock when input is available meaning that the lock gets released and the write can obtain it. 🤔
Activity
derklaro commentedon Dec 30, 2021
I went a bit further into this issue. It looks like the
FramedInputStreamConsumercallsreadon the response input stream of the request (which normally is correct). But it locks the underlying Channel waiting for input and releasing it's lock when input is available meaning that the lock gets released and the write can obtain it. 🤔Use a non-blocking output stream for socket writes (#1769)