Yes, the issue had to do with the firewall -- it was filtering outbound connections as "Unknown TCP" and something similar.
Had to override the policies to get it working. On Wednesday, 31 August 2016 01:54:27 UTC-4, Branislav Katreniak wrote: > > Did you look at the communication in wireshark? That may help to point to > the real problem. > > Kind regards > Brano > > On Tue, Aug 30, 2016 at 11:58 PM, Abhishek Balaji Radhakrishnan < > [email protected] <javascript:>> wrote: > >> Hi, >> >> I am encountering a weird problem with EzRpcClient. Whenever a client, >> say C1 (behind a firewall), has to send RPCs to a server S in a remote >> location, the connection part (below snippet) in >> C1 has to happen *every time before an RPC request is sent*: >> >> >> >> capnp::EzRpcClient client(argv[1]); >> Calculator::Client calculator = client.getMain<Calculator>(); >> >> >> I tried this calculator sample example >> <https://github.com/abhishekrb19/capnproto/blob/master/c%2B%2B/samples/calculator-client.c%2B%2B>and >> >> the same problem was occurring, i.e., for each operation, evaluating >> literal, add/subtract, etc., the above code had to be used (as opposed to >> how it's done in the example, >> where the connection is established *only once*). >> >> Without this, only the "evaluate literal" request was sent and response >> was received. Subsequent requests were getting blocked (or gets lost). >> >> However, I did not notice this behavior with other clients (the example >> and my code works as-is without having to re-establish the connection >> multiple times from other clients to the server). >> >> Also, to rule out the possibility that some middleware/firewall was >> blocking subsequent requests from the same TCP connection, I tested it with >> a simple client-server chat program and it works fine. >> >> Any thoughts what might be happening the EzRpcClient? >> >> Thanks, >> Abhishek >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Cap'n Proto" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> Visit this group at https://groups.google.com/group/capnproto. >> > > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
