Home
last modified time | relevance | path

Searched full:closed (Results 1 – 25 of 113) sorted by relevance

12345

/thrift-3.4.0/.github/
Dstale.yml6 # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7 # Set to false to disable. If disabled, issues still need to be closed manually, but will remain ma…
30 recent activity. It will be closed in 7 days if no further activity occurs.
40 This issue has been automatically closed due to inactivity.
54 # recent activity. It will be closed if no further activity occurs. Thank you
/thrift-3.4.0/lib/rb/spec/
Dunix_socket_spec.rb29 @handle = double("Handle", :closed? => false)
75 it "should close the handle when closed" do
76 handle = double("UNIXServer", :closed? => false)
84 it "should delete the socket when closed" do
85 handle = double("UNIXServer", :closed? => false)
97 it "should return true for closed? when appropriate" do
98 handle = double("UNIXServer", :closed? => false)
108 allow(handle).to receive(:closed?).and_return(true)
Dserver_socket_spec.rb54 it "should close the handle when closed" do
55 handle = double("TCPServer", :closed? => false)
66 it "should return true for closed? when appropriate" do
67 handle = double("TCPServer", :closed? => false)
76 allow(handle).to receive(:closed?).and_return(true)
Dsocket_spec_shared.rb58 it "should declare itself as closed when it has an error" do
66 it "should raise an error when the stream is closed" do
68 allow(@handle).to receive(:closed?).and_return(true)
70 expect { @socket.write("fail") }.to raise_error(IOError, "closed stream")
71 expect { @socket.read(10) }.to raise_error(IOError, "closed stream")
Dbase_transport_spec.rb353 @input = double("Input", :closed? => false)
354 @output = double("Output", :closed? => false)
366 allow(@input).to receive(:closed?).and_return(true)
368 allow(@input).to receive(:closed?).and_return(false)
369 allow(@output).to receive(:closed?).and_return(true)
371 allow(@input).to receive(:closed?).and_return(true)
382 it "should close both input and output when closed" do
Dssl_socket_spec.rb29 @simple_socket_handle = double("Handle", :closed? => false)
34 …(double("SSLHandle", :connect_nonblock => true, :post_connection_check => true), :closed? => false)
/thrift-3.4.0/lib/go/thrift/
Dsimple_server.go42 // server stop to avoid hanging too long to wait for all client connections to be closed gracefully.
48 // for all the client connections to be closed gracefully.
57 closed int32 member
189 closed := atomic.LoadInt32(&p.closed)
190 if closed != 0 {
191 return closed, nil
224 closed, err := p.innerAccept()
228 if closed != 0 {
249 if atomic.LoadInt32(&p.closed) != 0 {
252 atomic.StoreInt32(&p.closed, 1)
[all …]
Diostream_transport.go33 closed bool member
98 return !p.closed
101 // implicitly opened on creation, can't be reopened once closed
103 if !p.closed {
112 if p.closed {
113 return NewTTransportException(NOT_OPEN, "StreamTransport already closed.")
115 p.closed = true
Dsocket_conn.go33 closed int32 member
70 return sc != nil && sc.Conn != nil && atomic.LoadInt32(&sc.closed) == 0
90 // that the connection is already closed, we need to
119 // Already closed
122 atomic.StoreInt32(&sc.closed, 1)
/thrift-3.4.0/lib/rb/lib/thrift/transport/
Dunix_server_socket.rb47 @handle.close unless @handle.closed?
54 def closed?
55 @handle.nil? or @handle.closed?
Dserver_socket.rb53 @handle.close unless @handle.nil? or @handle.closed?
57 def closed?
58 @handle.nil? or @handle.closed?
Dsocket.rb61 !@handle.nil? and !@handle.closed?
65 raise IOError, "closed stream" unless open?
97 raise IOError, "closed stream" unless open?
122 @handle.close unless @handle.closed?
133 @handle.close unless @handle.nil? or @handle.closed?
Dio_stream_transport.rb33 def open?; not @input.closed? or not @output.closed? end
Dbase_server_transport.rb33 def closed?
/thrift-3.4.0/lib/go/
DREADME.md111 closed the connection). When implementing Go Thrift server, you can take
139 …e/thrift/lib/go/thrift#TSimpleServer.Stop) will wait for all client connections to be closed after
154 will wait for all the client connections to be closed gracefully with
156 connections to be closed gracefully util thrift.ServerStopTimeout is
157 reached, and client connections that are not closed after thrift.ServerStopTimeout
158 will be closed abruptly which may cause some client errors.
/thrift-3.4.0/lib/dart/lib/src/browser/
Dt_web_socket.dart64 _socket == null || _socket.readyState == WebSocket.CLOSED;
115 .add(StateError('Socket was closed with pending requests'));
119 _onStateController.add(TSocketState.CLOSED);
/thrift-3.4.0/lib/py/src/server/
DTNonblockingServer.py70 CLOSED = 4 variable
117 CLOSED --- socket was closed and connection should be deleted.
192 CLOSED if request throws unexpected exception.
224 """Returns True if connection is closed."""
225 return self.status == CLOSED
233 self.status = CLOSED
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/transport/
DReadCountingTransport.java50 throw new TTransportException(TTransportException.NOT_OPEN, "Transport is closed"); in read()
59 throw new TTransportException(TTransportException.NOT_OPEN, "Transport is closed"); in write()
/thrift-3.4.0/lib/lua/src/
Dusocket.c160 return CLOSED; in socket_accept()
194 return CLOSED; in socket_connect()
212 return CLOSED; in socket_send()
232 return CLOSED; in socket_recv()
244 // Connection has been closed by peer in socket_recv()
246 return CLOSED; in socket_recv()
280 } else if (err == CLOSED) { \
Dsocket.h36 CLOSED = -2, enumerator
41 static const char * CLOSED_MSG = "Connection Closed";
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/server/
DTestThreadPoolServer.java56 // TODO: The socket is actually closed (timeout) but the client code in testStopServerWithOpenClient()
58 assertTrue(client.isOpen(), "Client should be closed after server shutdown"); in testStopServerWithOpenClient()
/thrift-3.4.0/lib/d/src/thrift/internal/
Dsocket.d27 // FreeBSD and OS X return -1 and set ECONNRESET if socket was closed by
61 * is logically in closed state now.
/thrift-3.4.0/lib/erl/test/
Dtest_disklog.erl49 io:format("Client closed~n"),
88 io:format("Client closed~n"),
/thrift-3.4.0/lib/erl/src/
Dthrift_buffered_transport.erl84 {Closed, Result} = thrift_transport:close(Wrapped),
85 {State#t_buffered{wrapped = Closed}, Result}.
/thrift-3.4.0/lib/d/src/thrift/transport/
Dbase.d35 * If a transport is closed, it can be opened by calling open(), and vice
39 * the related functions do not necessarily fail when called for a closed
42 * been closed (possibly because the connection was abruptly closed), but

12345