Hello All,
   I am getting the exact same issue reported in the below thread but for 
Oracle Linux OS.
https://github.com/grpc/grpc/issues/13050

Issue: Python Grpc client service method does not return when called from 
httpd on Oracle Linux. It works from eclipse in OSX. Works from python 
terminal in Oracle Linux, fails only when it is called from within httpd in 
Oracle Linux.

*Configuration*
Oracle Linux 7.8
httpd-2.4.41, 2.4.46
Python 3.8.0, 3.9.0
  Django 2.2.6
  grpcio 1.32.0
  grpcio-tools 1.32.0
  mod-wsgi 4.7.1
  mod-wsgi-httpd 2.4.41.1

*Pseudo code:*
from my.service import my_service_pb2_grpc
with open('/path/to/pem/file', 'rb') as f:
  trusted_certs = f.read()
with open('path/to/key/file', 'rb') as f:
  cert_key = f.read()
cred = grpc.ssl_channel_credentials(root_certificate=trusted_certs, 
private_key=cert_key, certificate_chain=trusted_certs)
channel = grpc.secure_channel('{}:{}'.format('server_url',443), cred)
stub = my_service_pb2_grpc.MyServiceStub(channel)
response = stub.MyMethod(MyRequest)

I tried with options *grpc.keepalive_timeout_ms and  * 
*grpc.keepalive_time *as 10000, but no luck.

Could anyone please help me on this?

Thanks and Regards,
Manosh Padannayil

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/d50c82c4-0f9a-4d22-9c30-affac1877e3en%40googlegroups.com.

Reply via email to