Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for forceCloseSockets (0.35 sec)

  1. src/net/main_plan9_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    func installTestHooks() {}
    
    func uninstallTestHooks() {}
    
    // forceCloseSockets must be called only from TestMain.
    func forceCloseSockets() {}
    
    func enableSocketConnect() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 30 03:30:14 UTC 2016
    - 392 bytes
    - Viewed (0)
  2. src/net/main_windows_test.go

    	poll.CloseFunc = origClosesocket
    	connectFunc = origConnect
    	poll.ConnectExFunc = origConnectEx
    	listenFunc = origListen
    	poll.AcceptFunc = origAccept
    }
    
    // forceCloseSockets must be called only from TestMain.
    func forceCloseSockets() {
    	for s := range sw.Sockets() {
    		poll.CloseFunc(s)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:36:30 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/net/main_unix_test.go

    	listenFunc = origListen
    	poll.AcceptFunc = origAccept
    	getsockoptIntFunc = origGetsockoptInt
    
    	for _, fn := range extraTestHookUninstallers {
    		fn()
    	}
    }
    
    // forceCloseSockets must be called only from TestMain.
    func forceCloseSockets() {
    	for s := range sw.Sockets() {
    		poll.CloseFunc(s)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. src/net/main_wasm_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build wasip1 || js
    
    package net
    
    func installTestHooks() {}
    
    func uninstallTestHooks() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 284 bytes
    - Viewed (0)
  5. src/net/main_test.go

    	installTestHooks()
    
    	st := m.Run()
    
    	testHookUninstaller.Do(uninstallTestHooks)
    	if testing.Verbose() {
    		printRunningGoroutines()
    		printInflightSockets()
    		printSocketStats()
    	}
    	forceCloseSockets()
    	os.Exit(st)
    }
    
    // mustSetDeadline calls the bound method m to set a deadline on a Conn.
    // If the call fails, mustSetDeadline skips t if the current GOOS is believed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top