                     var _len = 0
                     
                     if let tlsc = client.tlsContext {
-                        //                            var smallbuffer = [UInt8](repeating: 0, count: size)
-                        
-                        //                            len = recv(client.sockfd, &smallbuffer, size, client.readFlags)
+                       
                         recv_loop: while true {
                             guard let data = try? tlsc.read(size: size) else {
                                 return nil

                getpeername(fd, &addr, &socklen)
                
                let context = try server.tlsContext?.accept(socket: fd)
                print("tls accept: \(context)")
                return try! SXClientSocket(fd: fd,
                                           tls: context,
                                           addrinfo: (addr: addr, len: socklen),

            
            let read = { (client: SXClientSocket) throws -> Data? in
                let size = client.readBufsize
                if let tlsc = client.tlsContext {
                    return try? tlsc.read(size: size)
                }
                var buffer = [UInt8](repeating: 0, count: size)
                var len = 0
                
