Hi Cameleers, Small update on this, I'm taking the approach of building a custom server for this, using WireMock is a dead end as WireMock expects all responses to be converted to a byte[], and that blocks for any streaming attempts.
I did manage to get a PipedInput/Output streams do I can push data from the test into the response, but WireMock needs to log the response (for later assertions) and that leads to blocking. Also it seems that it will not flush the response output stream until the end of the stream, so even if I bypass the logging the behaviour of the streaming bit could be unpredictable and depend on the buffer sizes and the like. zoran On Thu, Dec 10, 2020 at 1:46 PM Zoran Regvart <zo...@regvart.com> wrote: > > Hi JB, > split off into a separate thread, yeah, thanks, I could use some help/ideas. > > I'm trying to create an integration test, using WireMock and > WiremockNetworkTrafficListener[1] to simulate the issue reported on > the users mailing list[2]. > > Doesn't seem like I will be able to, so I might try another approach. > The crux of the issue seems to be that WireMock is not really well > suited to simulate CometD (hard to simulate pushes) and that just > closing the socket via WiremockNetworkTrafficListener doesn't lead to > the same error scenario, i.e. the HTTP client just retries (from what > it seems). > > It's hard for me to work without a test, and fiddling with the > firewall to block the connection takes too much time in each iteration > and is hard to do reliably. > > I'll try to work something out, this[3] is what I have right now, not > really something to push and I am changing it trying to find the right > set of circumstances to trigger the error case. > > zoran > > [1] > https://github.com/tomakehurst/wiremock/blob/d43540a4a4421c49a2b866db5a19dca5d428f85b/src/main/java/com/github/tomakehurst/wiremock/http/trafficlistener/WiremockNetworkTrafficListener.java > [2] > https://lists.apache.org/thread.html/rb54e7c161eef79ed1142caaf549a0ab568697ec82f246c7fe9132ee7%40%3Cusers.camel.apache.org%3E > [3] https://gist.github.com/zregvart/f7697cfd3c325afa6f941dfd32087bd0 > > > On Thu, Dec 10, 2020 at 12:51 PM JB Onofré <j...@nanthrax.net> wrote: > > > > Hey Zoran > > > > Do you need help on the sales force streaming issue ? > > > > Regards > > JB > > > > > Le 10 déc. 2020 à 12:50, Zoran Regvart <zo...@regvart.com> a écrit : > > > > > > I was hoping to fix the Salesforce streaming issue reported on the > > > users mailing list, I guess that'll have to wait for 3.7.1 as I'm > > > having issues reproducing this. > > > > > > zoran > > > > > >> On Thu, Dec 10, 2020 at 12:10 PM Andrea Cosentino <anco...@gmail.com> > > >> wrote: > > >> > > >> I just fixed some documentation issues with google stream components. > > >> > > >> Green light for me. > > >> > > >> Il giorno gio 10 dic 2020 alle ore 07:56 Claus Ibsen > > >> <claus.ib...@gmail.com> > > >> ha scritto: > > >> > > >>> Hi Gregore > > >>> > > >>> The FTP tests are fixed. > > >>> We are ready for cutting the release. > > >>> > > >>> On Thu, Dec 3, 2020 at 9:37 PM Gregor Zurowski > > >>> <gre...@list.zurowski.org> > > >>> wrote: > > >>>> > > >>>> Yes, I am available for cutting the release as soon as things are > > >>>> ready. > > >>>> > > >>>> Thanks, > > >>>> Gregor > > >>>> > > >>>> > > >>>> On Thu, Dec 3, 2020, 11:03 AM Claus Ibsen <claus.ib...@gmail.com> > > >>>> wrote: > > >>>> > > >>>>> Hi > > >>>>> > > >>>>> I am still working on the csimple language. There are some more work > > >>>>> needed. > > >>>>> And the JIRA has 33 tickets for 3.7. It would be good to get some more > > >>>>> work done, or move to 3.8. > > >>>>> I am afraid that we need another week of development to be ready. > > >>>>> > > >>>>> Gregor if you are listening when is a good time for you to cut the > > >>> release > > >>>>> ? > > >>>>> > > >>>>> > > >>>>> On Mon, Nov 23, 2020 at 1:15 PM Claus Ibsen <claus.ib...@gmail.com> > > >>> wrote: > > >>>>>> > > >>>>>> Hi > > >>>>>> > > >>>>>> Next month (december) we should aim to get a new 3.7 LTS release out. > > >>>>>> > > >>>>>> So lets start to close down on remaining work, and get CI stable. > > >>>>>> > > >>>>>> I am currently working on compiled simple language (preview) for 3.7 > > >>>>>> which is an effort that takes all of this week. > > >>>>>> > > >>>>>> The JIRA has 43 tickets assigned > > >>>>>> > > >>>>> > > >>> https://issues.apache.org/jira/issues/?jql=project%20%3D%20CAMEL%20AND%20fixVersion%20%3D%203.7.0%20AND%20statusCategory%20%3D%20new > > >>>>>> > > >>>>>> Some of those can likely be moved to 3.8, as usual we dont have time > > >>>>>> to complete all those tickets. > > >>>>>> > > >>>>>> Lets try to take 2 weeks of development and then see if we are ready > > >>>>>> for cutting the RC. > > >>>>>> > > >>>>>> > > >>>>>> -- > > >>>>>> Claus Ibsen > > >>>>>> ----------------- > > >>>>>> http://davsclaus.com @davsclaus > > >>>>>> Camel in Action 2: https://www.manning.com/ibsen2 > > >>>>> > > >>>>> > > >>>>> > > >>>>> -- > > >>>>> Claus Ibsen > > >>>>> ----------------- > > >>>>> http://davsclaus.com @davsclaus > > >>>>> Camel in Action 2: https://www.manning.com/ibsen2 > > >>>>> > > >>> > > >>> > > >>> > > >>> -- > > >>> Claus Ibsen > > >>> ----------------- > > >>> http://davsclaus.com @davsclaus > > >>> Camel in Action 2: https://www.manning.com/ibsen2 > > >>> > > > > > > > > > > > > -- > > > Zoran Regvart > > > > > -- > Zoran Regvart -- Zoran Regvart