Re: [grpc-io] if we switch from netty to okttp in a non-android project, is there any potential different?

2018-08-24 Thread 'Eric Anderson' via grpc.io
On Thu, Aug 23, 2018 at 11:46 AM Grpc learner  wrote:

> The error we encounter was `Netty lib does not support Sparc64: could not
> load a native library: io_grpc_netty_shaded_netty_tcnative_sparc_64`
>

Ah, yes. We don't provide pre-build binaries for SPARC. But swapping to
OkHttp doesn't really help the situation.

If you need SSL/TLS, you will need to use Java 9+ or build Conscript or
netty-tcnative manually. It's also possible to use Jetty ALPN boot, but we
generally discourage it because it can produce really weird failures when
misconfigured. But in your case it may be the easiest.

-- 
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%2B4M1oOPjWYxxTwc2EJ4goBAa3bYoFHsfiWKDA65Mu%2BOg0CLMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [grpc-io] if we switch from netty to okttp in a non-android project, is there any potential different?

2018-08-23 Thread Grpc learner
Hi Jasper,

Thanks for your reply!

The error we encounter was `Netty lib does not support Sparc64: could not 
load a native library: io_grpc_netty_shaded_netty_tcnative_sparc_64`

Did you encounter it before?



On Tuesday, August 21, 2018 at 1:18:34 PM UTC-7, Jasper Siepkes wrote:
>
> Hi!
>
> We run gRPC on SmartOS (ie. Illumos / Solaris based OS) on multiple 
> production systems with Netty with no problems whatsoever. What kind of 
> problems are you experiencing on Solaris and which version of Solaris are 
> you running?
>
> Kind regards,
>
> Jasper
>
> On Tuesday, 21 August 2018 21:05:54 UTC+2, Grpc learner wrote:
>>
>> Hi Eric,
>>
>> Thank you so much for your reply!
>> We have some Solaris machine, in which seem we cannot use netty, so we 
>> would like to switch to okhttp.
>>
>>
>> On Monday, August 20, 2018 at 7:58:08 AM UTC-7, Eric Anderson wrote:
>>>
>>> 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  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+u...@googlegroups.com.
 To post to this group, send email to grp...@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
  
 
 .
 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/30daf6c5-ef2a-437c-9074-7df7c62c0959%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [grpc-io] if we switch from netty to okttp in a non-android project, is there any potential different?

2018-08-21 Thread 'Jasper Siepkes' via grpc.io
Hi!

We run gRPC on SmartOS (ie. Illumos / Solaris based OS) on multiple 
production systems with Netty with no problems whatsoever. What kind of 
problems are you experiencing on Solaris and which version of Solaris are 
you running?

Kind regards,

Jasper

On Tuesday, 21 August 2018 21:05:54 UTC+2, Grpc learner wrote:
>
> Hi Eric,
>
> Thank you so much for your reply!
> We have some Solaris machine, in which seem we cannot use netty, so we 
> would like to switch to okhttp.
>
>
> On Monday, August 20, 2018 at 7:58:08 AM UTC-7, Eric Anderson wrote:
>>
>> 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  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+u...@googlegroups.com.
>>> To post to this group, send email to grp...@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
>>>  
>>> 
>>> .
>>> 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/e4e86e6d-553c-4165-b9b8-cbc0bfbfd220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [grpc-io] if we switch from netty to okttp in a non-android project, is there any potential different?

2018-08-21 Thread Grpc learner
Hi Eric,

Thank you so much for your reply!
We have some Solaris machine, in which seem we cannot use netty, so we 
would like to switch to okhttp.


On Monday, August 20, 2018 at 7:58:08 AM UTC-7, Eric Anderson wrote:
>
> 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  > 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+u...@googlegroups.com .
>> To post to this group, send email to grp...@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
>>  
>> 
>> .
>> 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/eba63db7-fff2-4618-a005-60d73669ca19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [grpc-io] if we switch from netty to okttp in a non-android project, is there any potential different?

2018-08-20 Thread 'Eric Anderson' via grpc.io
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  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
> 
> .
> 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