Replies: 1 comment 2 replies
-
Hi. If I understand your problem correctly (which I might not), enlarging the buffer on CliWrap's side might not help. There is another buffer on your application's side as well, whose size needs to be changed too. However, even then, I'm not sure if it's the right solution. One thing you can try is use |
Beta Was this translation helpful? Give feedback.
-
Hi
Thanks for the great library. I have specific case where I use CliWrap in integration test suite. I start asp.net core server as separate process in test setup method and then in test execute requests and check responses. To be able to see output logs from asp.net core I use ListenAsync and print output from process standard output to test console. When I debug test asp.net core server process still works in background so I can put breakpoint in my test and even fire requests from some other tool like postman. This works just fine. But there is specific case which is related to process output buffer size. When I pause on breakpoint, ListenAsync is paused as well, so it doesn't pick up messages from buffer. So if my asp.net core app prints too many messages to standard output process stops and wait till buffer will be available. So after couple requests from postman my asp.net core process stops serving requests until i fire ListenAsync in debugger to free buffer.
So I could ignore standard output from process, but it's useful for some test debugging scenarios. Do you know any way how to handle this issue? I saw that process buffer size is hardcoded, if I would be able to change it to larger value this would allow my asp.net core app to run longer since buffer wouldn't be full so quickly. But I believe this is not possible.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions