Changes between Initial Version and Version 1 of Ticket #2229


Ignore:
Timestamp:
08/11/21 14:38:04 (3 years ago)
Author:
xTeare@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2229 – Description

    initial v1  
    1 
    21So, i've got these things : a client, a server, nginx. They all run on the same machine.
    32
     
    109- protobuf-net  -  https://github.com/protobuf-net/protobuf-net
    1110
    12  Both also use the SSL certificate and generally they both work as expected.
     11Both also use the SSL certificate and generally they both work as expected.
    1312
    1413The nginx proxy is supposed to be used as a Reverse-Proxy -> Clients only need to know one Endpoint for all their Requests. Nginx is only configured to pass grpc requests, nothing else.
     
    2019Without nginx, there are no errors while sending data from client to server. With nginx however, the client does recieve a HTTP 504 error.
    2120
     21**Content of error.log**
     22
     23{{{
     242021/07/30 13:08:05 [error] 23372#21368: *44 upstream timed out (10060: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat) while sending request to upstream, client: 127.0.0.1, server: , request: "POST /greet.Greeter/SayHello HTTP/2.0", upstream: "grpcs://127.0.0.1:5001", host: "localhost:5002"
     25
     26}}}
     27
     28
     29
     30The repository does only contain a simplified version, but with the same end results.
     31Please have a look at my sample project, wich should include everything you'd need.
     32
     33- Github Repository with samples https://github.com/xTeare/GrpcAndNGINX
     34
     35- nginx.conf https://github.com/xTeare/GrpcAndNGINX/blob/master/nginx-1.21.1/conf/nginx.conf
     36
     37**Debug logs**
     38- for the working request with 500 entries https://pastebin.com/q54T55vR
     39- for the not working request 1000 entries https://pastebin.com/6vnxiNax
     40
     41
     42
     43
    2244Do you guy's have heard of this behaviour / know how to fix this ?
    2345
    2446
    25 Please have a look at my sample project, wich should include everything you'd need.
     47**Other Resources**
    2648
    27 Github Repository with sample projects https://github.com/xTeare/GrpcAndNGINX
    28 
    29 
    30 Other Resources :
    31 
    32 Stackoverflow Question https://stackoverflow.com/questions/68547210/c-sharp-nginx-upstream-timed-out
    33 2nd Stackoverflow Question (with Java) https://stackoverflow.com/questions/68708438/grpc-communication-stucks-using-nginx
    34 /r/nginx https://www.reddit.com/r/nginx/comments/otwhma/c_grpc_with_nginx_does_not_work/
    35 /r/csharp https://old.reddit.com/r/csharp/comments/otwgta/grpc_with_nginx_does_not_work/
     49- Stackoverflow Question https://stackoverflow.com/questions/68547210/c-sharp-nginx-upstream-timed-out
     50- 2nd Stackoverflow Question (with Java) https://stackoverflow.com/questions/68708438/grpc-communication-stucks-using-nginx
     51- /r/nginx https://www.reddit.com/r/nginx/comments/otwhma/c_grpc_with_nginx_does_not_work/
     52- /r/csharp https://old.reddit.com/r/csharp/comments/otwgta/grpc_with_nginx_does_not_work/
    3653
    3754Thanks in advance