| Index: third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/server.pxd.pxi
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py b/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/server.pxd.pxi
|
| similarity index 74%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py
|
| copy to third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/server.pxd.pxi
|
| index 429f58186e3fce43dc21e81e0f9d7e20c7e0bf70..a344230be408307f369ae7a109698eece2014498 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py
|
| +++ b/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/server.pxd.pxi
|
| @@ -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
|
| @@ -28,19 +28,16 @@
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
| -from mod_pywebsocket import msgutil
|
| +cdef class Server:
|
|
|
| + cdef grpc_server *c_server
|
| + cdef bint is_started # start has been called
|
| + cdef bint is_shutting_down # shutdown has been called
|
| + cdef bint is_shutdown # notification of complete shutdown received
|
| + # used at dealloc when user forgets to shutdown
|
| + cdef CompletionQueue backup_shutdown_queue
|
| + cdef list references
|
| + cdef list registered_completion_queues
|
|
|
| -_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
|
| + cdef _c_shutdown(self, CompletionQueue queue, tag)
|
| + cdef notify_shutdown_complete(self)
|
|
|