grpc-okhttp works fine on regular, non-Android Java versions. Security is different than grpc-netty, so you can't use netty-tcnative. You can use Java 9+ or Conscrypt. If using Conscrypt, you should install it as the default provider with Security.insertProviderAt(Conscrypt.newProvider(), 1); before calling grpc. Netty uses non-blocking I/O via NIO whereas OkHttp uses blocking I/O with Input/OutputStreams. Thus each TCP connection with OkHttp will use 1-2 threads.
Why are you interested in using okhttp with non-Android? On Thu, Aug 16, 2018 at 2:56 PM Grpc learner <x...@autonomic.ai> wrote: > If we are not building the Android software but regular java maven project > for PC/Linux > what is different? > > > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to grpc-io+unsubscr...@googlegroups.com. > To post to this group, send email to grpc-io@googlegroups.com. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/1bd39209-2854-42d4-b077-3c94dfbb0e77%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/1bd39209-2854-42d4-b077-3c94dfbb0e77%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oMRb1tgSWry4ALNcwUKoBVMVBdJ7bxaX%2BP9qVsF17PWyw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature