[grpc-io] pure virtual method called. terminate called without an active exception

2023-05-25 Thread karthik karra
Hi All,

I am using reactor bidi apis. when run normally, i am not facing this error 
but when trying to run the client with valgrind then this error is showing 
up. 

any suggestions would be helpful.

thanks,
karthik

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f3825f1b-f0c5-43b0-989e-a9fe16eb03bbn%40googlegroups.com.


[grpc-io] Re: How grpc cancell a thread/running function in server side.

2023-05-25 Thread Ashok Krishna
Hi, 

Is there a better way to this requirement other than adding multiple 
checkpoints in the code like the one below which would be cumbersome ?
if (observer.isCancelled()) {
return;
}

On Friday, June 24, 2022 at 9:51:02 AM UTC+5:30 sanjay...@google.com wrote:

> This may partially answer your question: 
> https://stackoverflow.com/questions/54588382/how-can-a-grpc-server-notice-that-the-client-has-cancelled-a-server-side-streami
>
> Or 
> https://github.com/bazelbuild/bazel-buildfarm/blob/main/src/main/java/build/buildfarm/server/ExecutionService.java#L66
>  
> as another example
>
> On Monday, June 20, 2022 at 3:15:36 AM UTC-7 Akshay Gayale wrote:
>
>> Hi, do you have any code examples here to cancel a ongoing thread on 
>> server from client? Please help. Im stuck here. 
>>
>> On Wednesday, 11 July 2018 at 23:16:23 UTC+5:30 not...@google.com wrote:
>>
>>> If the server is cancelling the RPC, you can call the observer like I 
>>> showed above.  
>>>
>>> If the client is cancelling the RPC, it depends which API you use.  
>>>
>>> * If you are using the blocking API, you can use Context to wrap an RPC 
>>> call.  Another thread can cancel that context which should terminate the 
>>> RPC.   
>>> * If you are using the Future API, you can call cancel(false) on the 
>>> future.  
>>> * If you are using the Async API, you can call the 
>>> requestObserver.onError(Status.CANCELLED.asRuntimeException()), just like 
>>> you could on the server.
>>>
>>> The client side gRPC library will end the stream and send a RST_STREAM 
>>> (implementation detail) to the server.  The server will either notice the 
>>> cancellation via its own request observer, or by checking the Context.
>>>
>>> Hope that helps!
>>>
>>>
>>>
>>> On Tuesday, July 10, 2018 at 11:34:47 AM UTC-7, Grpc learner wrote:

 IMO, this is for telling the client side that there is an error. But 
 how this thread or task is terminated in server side?

 On Tuesday, July 10, 2018 at 11:30:30 AM UTC-7, Carl Mastrangelo wrote:
>
> In the server side stub you can call 
> responseObserver.onError(Status.CANCELLED.asRuntimeException())
>
> On Monday, July 9, 2018 at 3:03:49 PM UTC-7, Grpc learner wrote:
>>
>> Hi Carl,
>> I am using Java
>>
>> On Monday, July 9, 2018 at 1:24:17 PM UTC-7, Carl Mastrangelo wrote:
>>>
>>> What language are you using?
>>>
>>> On Monday, July 9, 2018 at 12:39:40 PM UTC-7, Grpc learner wrote:

 Hi, all

 How grpc cancel a thread/running function in server side.
 When a request comes in the server side, a function in the server 
 side starts to run and server this request.
 But if this function run out of deadline. How grpc stop / suspend 
 this function in the current thread?

 Thanks!

>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/db569976-7630-4d01-84b2-1f9beb3eb31an%40googlegroups.com.


[grpc-io] gPRC: Python server and web client (TypeScript)

2023-05-25 Thread Mark Norgate
I have built a little Python gRPC server and am now trying to build a 
client that runs in Vite for the web in TypeScript.

There is a similar thread here 
, but the poster did not 
respond to say if they had solved the problem.

I have used grpc-web and protobuf-ts, but there were significant problems 
with both of them.

Has anyone managed to get this combination working?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/43517965-d616-4f0f-9965-45bf72ee8afdn%40googlegroups.com.