Commit Graph

69 Commits

Author SHA1 Message Date
Stanley Cheung fd3aa34b83 Added License headers to all files 2018-02-22 14:09:55 -08:00
Stanley Cheung be8117e7a3 review fixes 2018-02-22 10:46:49 -08:00
Stanley Cheung ef7f640f4e Combine Dockerfiles (existing and examples) 2018-02-22 01:47:07 -08:00
Bret McKee ffd45435bf Fix path to init_submodules.sh in Dockerfile 2018-02-17 11:50:23 -08:00
Stanley Cheung fb762e9e79
Merge pull request #108 from deltaskelta/dockerfile
Added dockerfile
2018-02-16 15:43:05 -08:00
Stanley Cheung cd94b81ed7 gRPC Updates 2018-02-15 13:37:08 -08:00
Stanley Cheung f72c56a0e6 More doc updates 2018-02-13 12:34:36 -08:00
Stanley Cheung 7c37356116 Some scripts and docs cleanup 2018-02-12 13:22:35 -08:00
Stanley Cheung abdb66cc7e Update end-to-end example README 2018-02-09 13:53:55 -08:00
Stanley Cheung 7ccd95c986 Sync with gRPC 2018-02-08 15:28:12 -08:00
Stanley Cheung fb13304ecb
Update README.md 2018-01-22 15:27:44 -08:00
Stanley Cheung f16f6f1fa2
Update README.md 2018-01-22 15:26:32 -08:00
Stanley Cheung e962771e2d Minor doc edit 2018-01-19 14:58:29 -08:00
Feng Li 7cd115cd15
Delete nginx.pid 2018-01-19 14:26:44 -08:00
Stanley Cheung ec7a06321d Decouple example build from nginx build 2018-01-19 12:36:19 -08:00
Jeff Willette a641f103f3 moved to docker folder
- modified docker command and added comments
2018-01-12 19:13:44 +09:00
Feng Li 4ad036a974 Supports SSL/TLS gRPC backend.
Addes following configs:
  grpc_ssl <on|off>;
  grpc_ssl_target_name_override <target name>;
  grpc_ssl_pem_root_certs <root certs pem file path>;
  grpc_ssl_pem_private_key <private key pem file path>;
  grpc_ssl_pem_cert_chain <cert chain pem file path>;
2018-01-05 18:48:53 -08:00
Feng Li 0b17363ce0 When gRPC backend is not reachable, a gRPC call may gets back before any
trailer gets initialized. Adds a nullptr check to avoid segfault.
2017-12-22 10:05:02 -08:00
Stanley Cheung 8aa8ce9039 grpc update 2017-12-14 22:29:38 -08:00
Stanley Cheung 98a74dfa92 Switch the example to use the new application/grpc-web-text format 2017-12-14 01:12:00 -08:00
Stanley Cheung c1f4cdb2dc Added a new client mode for the application/grpc-web-text format 2017-12-13 23:05:45 -08:00
Stanley Cheung 12d8077d82 Fix client build 2017-12-05 17:46:44 -08:00
Stanley Cheung 7d35fe76c5 Minor fix to html 2017-12-04 22:28:20 -08:00
Stanley Cheung 9b6b32ffe5 No more extern "C" for gRPC Core 2017-12-04 21:45:01 -08:00
Stanley Cheung 5579bc86cf Fixed segfault when calling grpc_error_get_status 2017-12-04 21:42:08 -08:00
Stanley Cheung bcc89b8856 Minor update to client 2017-11-21 16:49:43 -08:00
Feng Li 6e5d2dcef3 Supports base64 encoded gRPC-Web with content-type: application/grpc-web-text and content-type: application/grpc-web-text+proto. 2017-11-21 14:55:48 -08:00
Feng Li 24ff395bb4 Change gRPC-Web make file to add the protobuf include directory. 2017-11-13 14:16:04 -08:00
Feng Li e64c2779be Remove the client liveness detect timer when the downstream request/connection has been finalized.
Fix memory leaks in proto/stream body decoder.
Support clean shutdown for grpc lib and protobuf lib.
2017-11-13 13:26:44 -08:00
Feng Li 7ca17868e6 Finalize the downstream HTTP request when client close the connection.
Disable the client liveness detection by default.
2017-11-09 17:19:01 -08:00
Feng Li 4c45c6c043 Make the grpc event procssing thread joinable. 2017-10-11 11:04:41 -07:00
Stanley Cheung 2c724f83e8 Update after some linter changes 2017-08-16 15:16:37 -07:00
Wenbo Zhu abdf69cddc Update README.md 2017-08-02 14:17:01 -07:00
Feng Li 8b88ff2f84 Always invoke ngx_handle_write_event() after ngx_http_output_filter(),
in spite of its return value. This is required to support select/poll
besides epoll.
Also close the downstream connection when ngx_handle_write_event()
failing.
2017-07-12 11:45:41 -07:00
Feng Li 245b0e14a1 1. fixes for msan/ubsan.
2. continue write when nginx report NGX_AGAIN for a write operation.
2017-06-28 11:14:13 -07:00
Feng Li 4d61e8b986 Remove the -j option for make to reduce the memory consumption. 2017-06-09 11:30:02 -07:00
Feng Li f4b872f2ac Supports client liveness detection.
Supports negotiation for binary/base64 between js client and grpc-web
proxy.
2017-04-26 16:11:53 -07:00
Feng Li 1602fed090 Merge pull request #78 from lromor/file-offset-issue
moved nginx includes on the top of the headers in order to import ngi…
2017-03-28 10:12:17 -07:00
Stanley Cheung 358c5fb1de Removed http2 port from example nginx.conf 2017-03-27 13:44:54 -07:00
Leonardo Romor d455c34c3f moved nginx includes on the top of the headers in order to import nginx libc defines (ie _FILE_OFFSET_BITS) before everything. 2017-03-25 18:44:48 +01:00
Stanley Cheung 46a921638a Fix make clean 2017-03-23 11:05:13 -07:00
Stanley Cheung d271ba0a0a Refactor example
grpc backend code
2017-03-22 23:08:44 -07:00
Feng Li a66fc4b697 Merge pull request #72 from fengli79/master
Fix grpc-web encoder for non-zero terminated trailers.
2017-03-15 20:54:16 -07:00
Feng Li b997e063c9 Fix grpc-web encoder for non-zero terminated trailers. 2017-03-15 20:53:04 -07:00
Stanley Cheung 7124fc88b7 Update javascript library to use new headers 2017-03-15 14:03:31 -07:00
Feng Li cdab833f35 Use nginx_includes.h for nginx headers. 2017-03-15 13:57:58 -07:00
Feng Li d13e2ea6c9 Pin to grpc hash: f1666d48244143ddaf463523030ee76cc0fe691c.
Re-patch the portibility fix for %ld.
2017-03-15 12:47:57 -07:00
Feng Li 649a0e4a37 Supports x-accept-content-transfer-encoding: base64 and
x-accept-response-streaming: true.
2017-03-15 11:45:39 -07:00
Feng Li d3d63b31d4 Change gpr_slice to grpc_slice. 2017-03-01 16:52:18 -08:00
Feng Li 1b1edf8813 Merge branch 'master' into master 2017-03-01 15:06:12 -08:00