| Index: third_party/grpc/src/ruby/lib/grpc.rb
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py b/third_party/grpc/src/ruby/lib/grpc.rb
|
| similarity index 75%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py
|
| copy to third_party/grpc/src/ruby/lib/grpc.rb
|
| index 429f58186e3fce43dc21e81e0f9d7e20c7e0bf70..1671ba3550b8f20563cc26f0eeeef480f21322f0 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py
|
| +++ b/third_party/grpc/src/ruby/lib/grpc.rb
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2010, Google Inc.
|
| +# Copyright 2015-2016, Google Inc.
|
| # All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -27,20 +27,18 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -
|
| -from mod_pywebsocket import msgutil
|
| -
|
| -
|
| -_GOODBYE_MESSAGE = 'Goodbye'
|
| -
|
| -
|
| -def web_socket_do_extra_handshake(request):
|
| - pass # Always accept.
|
| -
|
| -
|
| -def web_socket_transfer_data(request):
|
| - while True:
|
| - line = msgutil.receive_message(request)
|
| - msgutil.send_message(request, line)
|
| - if line == _GOODBYE_MESSAGE:
|
| - return
|
| +ssl_roots_path = File.expand_path('../../../../etc/roots.pem', __FILE__)
|
| +unless ENV['GRPC_DEFAULT_SSL_ROOTS_FILE_PATH']
|
| + ENV['GRPC_DEFAULT_SSL_ROOTS_FILE_PATH'] = ssl_roots_path
|
| +end
|
| +
|
| +require 'grpc/errors'
|
| +require 'grpc/grpc'
|
| +require 'grpc/logconfig'
|
| +require 'grpc/notifier'
|
| +require 'grpc/version'
|
| +require 'grpc/core/time_consts'
|
| +require 'grpc/generic/active_call'
|
| +require 'grpc/generic/client_stub'
|
| +require 'grpc/generic/service'
|
| +require 'grpc/generic/rpc_server'
|
|
|