You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2017/06/07 20:46:11 UTC

thrift git commit: THRIFT-4222 Support Unix Domain Sockets in Golang TServerSocket Client: Go Patch: Zachary Wasserman

Repository: thrift
Updated Branches:
  refs/heads/master 48ea3cde0 -> b8ee72de5


THRIFT-4222 Support Unix Domain Sockets in Golang TServerSocket
Client: Go
Patch: Zachary Wasserman <za...@gmail.com>

This closes #1284


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/b8ee72de
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/b8ee72de
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/b8ee72de

Branch: refs/heads/master
Commit: b8ee72de5bf9318d50846852082325d0f932682b
Parents: 48ea3cd
Author: Zachary Wasserman <za...@gmail.com>
Authored: Wed May 31 09:50:12 2017 -0700
Committer: Jens Geyer <je...@apache.org>
Committed: Wed Jun 7 22:45:54 2017 +0200

----------------------------------------------------------------------
 lib/go/thrift/server_socket.go | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/b8ee72de/lib/go/thrift/server_socket.go
----------------------------------------------------------------------
diff --git a/lib/go/thrift/server_socket.go b/lib/go/thrift/server_socket.go
index d6e9495..5a88b80 100644
--- a/lib/go/thrift/server_socket.go
+++ b/lib/go/thrift/server_socket.go
@@ -47,6 +47,11 @@ func NewTServerSocketTimeout(listenAddr string, clientTimeout time.Duration) (*T
 	return &TServerSocket{addr: addr, clientTimeout: clientTimeout}, nil
 }
 
+// Creates a TServerSocket from a net.Addr
+func NewTServerSocketFromAddrTimeout(addr net.Addr, clientTimeout time.Duration) *TServerSocket {
+	return &TServerSocket{addr: addr, clientTimeout: clientTimeout}
+}
+
 func (p *TServerSocket) Listen() error {
 	if p.IsListening() {
 		return nil