- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 102 for setLinger (0.15 sec)
-
src/net/sockopt_fake.go
} return syscall.ENOPROTOOPT } func setKeepAlive(fd *netFD, keepalive bool) error { return syscall.ENOPROTOOPT } func setLinger(fd *netFD, sec int) error { if fd.fakeNetFD != nil { return fd.fakeNetFD.setLinger(sec) } return syscall.ENOPROTOOPT
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 955 bytes - Viewed (0) -
src/net/sockopt_posix.go
func setKeepAlive(fd *netFD, keepalive bool) error { err := fd.pfd.SetsockoptInt(syscall.SOL_SOCKET, syscall.SO_KEEPALIVE, boolint(keepalive)) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) } func setLinger(fd *netFD, sec int) error { var l syscall.Linger if sec >= 0 { l.Onoff = 1 l.Linger = int32(sec) } else { l.Onoff = 0 l.Linger = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 15:06:47 UTC 2023 - 2.1K bytes - Viewed (0) -
pkg/test/echo/server/endpoint/util.go
func forceClose(conn net.Conn) error { // Close may be called more than once. defer func() { _ = conn.Close() }() // Force the connection closed (should result in sending RST) return conn.(*net.TCPConn).SetLinger(0)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.6K bytes - Viewed (0) -
src/net/protoconn_test.go
if err != nil { t.Fatal(err) } c, err := DialTCP("tcp4", nil, ra) if err != nil { t.Fatal(err) } defer c.Close() c.SetKeepAlive(false) c.SetKeepAlivePeriod(3 * time.Second) c.SetLinger(0) c.SetNoDelay(false) c.LocalAddr() c.RemoteAddr() c.SetDeadline(time.Now().Add(someTimeout)) c.SetReadDeadline(time.Now().Add(someTimeout)) c.SetWriteDeadline(time.Now().Add(someTimeout))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 7.4K bytes - Viewed (0) -
src/cmd/internal/obj/stringer.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore // This is a mini version of the stringer tool customized for the Anames table // in the architecture support for obj. // This version just generates the slice of strings, not the String method. package main import ( "bufio" "flag" "fmt" "log" "os"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/trace_util.go
return []attribute.KeyValue{ attribute.Stringer("accept", &lazyAccept{req: req}), attribute.Stringer("audit-id", &lazyAuditID{req: req}), attribute.Stringer("client", &lazyClientIP{req: req}), attribute.Stringer("api-group", &lazyAPIGroup{req: req}), attribute.Stringer("api-version", &lazyAPIVersion{req: req}), attribute.Stringer("name", &lazyName{req: req}), attribute.Stringer("subresource", &lazySubresource{req: req}),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 03 15:25:35 UTC 2023 - 1.5K bytes - Viewed (0) -
test/fixedbugs/issue65808.go
// license that can be found in the LICENSE file.package main package main type Stringer interface { String() string } type ( stringer struct{} stringers [2]stringer foo struct { stringers } ) func (stringer) String() string { return "" } func toString(s Stringer) string { return s.String() } func (v stringers) toStrings() []string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 02 14:01:52 UTC 2024 - 562 bytes - Viewed (0) -
test/typeparam/boundmethod.go
//go:noinline func (m myint) String() string { return strconv.Itoa(int(m)) } type Stringer interface { String() string } func stringify[T Stringer](s []T) (ret []string) { for _, v := range s { // Test normal bounds method call on type param x1 := v.String() // Test converting type param to its bound interface first v1 := Stringer(v) x2 := v1.String() // Test method expression with type param type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 25 14:29:30 UTC 2023 - 2.7K bytes - Viewed (0) -
cmd/batchjobmetric_string.go
// Code generated by "stringer -type=batchJobMetric -trimprefix=batchJobMetric batch-handlers.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[batchJobMetricReplication-0] _ = x[batchJobMetricKeyRotation-1] _ = x[batchJobMetricExpire-2] }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 797 bytes - Viewed (0) -
cmd/healingmetric_string.go
// Code generated by "stringer -type=healingMetric -trimprefix=healingMetric erasure-healing.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[healingMetricBucket-0] _ = x[healingMetricObject-1] _ = x[healingMetricCheckAbandonedParts-2] }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Nov 28 18:20:55 UTC 2022 - 789 bytes - Viewed (0)