Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for flush (0.18 sec)

  1. cmd/listen-notification-handlers.go

    			if err != nil {
    				return
    			}
    			if len(mergeCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    			grid.PutByteBuffer(ev)
    		case <-emptyEventTicker:
    			if err := enc.Encode(struct{ Records []event.Event }{}); err != nil {
    				return
    			}
    			w.(http.Flusher).Flush()
    		case <-keepAliveTicker:
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          if (byteCount > length) writeContinuationFrames(streamId, byteCount - length)
        }
      }
    
      @Throws(IOException::class)
      fun flush() {
        this.withLock {
          if (closed) throw IOException("closed")
          sink.flush()
        }
      }
    
      @Throws(IOException::class)
      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. cni/pkg/ipset/ipset.go

    	if ipToDel.Is6() {
    		return m.Deps.deleteIP(m.V6Name, ipToDel, ipProto)
    	}
    	return m.Deps.deleteIP(m.V4Name, ipToDel, ipProto)
    }
    
    func (m *IPSet) Flush() error {
    	var err error
    	err = m.Deps.flush(m.V4Name)
    
    	if m.V6Name != "" {
    		v6err := m.Deps.flush(m.V6Name)
    		err = errors.Join(err, v6err)
    	}
    	return err
    }
    
    func (m *IPSet) ClearEntriesWithComment(comment string) error {
    	var err error
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          }
        }
    
        @Throws(IOException::class)
        override fun flush() {
          lock.assertNotHeld()
    
          ******@****.***ck {
            checkOutNotClosed()
          }
          // TODO(jwilson): flush the connection?!
          while (sendBuffer.size > 0L) {
            emitFrame(false)
            connection.flush()
          }
        }
    
        override fun timeout(): Timeout = writeTimeout
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  5. cmd/admin-bucket-handlers.go

    				return
    			}
    			if len(diffCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    		case <-keepAliveTicker.C:
    			if len(diffCh) > 0 {
    				continue
    			}
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    			w.(http.Flusher).Flush()
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(connection.writer.maxDataLength()).isEqualTo(newMaxFrameSize)
      }
    
      /**
       * Webservers may set the initial window size to zero, which is a special case because it means
       * that we have to flush headers immediately before any request body can be sent.
       * https://github.com/square/okhttp/issues/2543
       */
      @Test fun peerSetsZeroFlowControl() {
        peer.setClient(true)
    
        // Write the mocking script.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  7. cni/pkg/ipset/nldeps_mock.go

    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error {
    	args := m.Called(name, ip, ipProto)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) flush(name string) error {
    	args := m.Called(name)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) clearEntriesWithComment(name, comment string) error {
    	args := m.Called(name, comment)
    	return args.Error(0)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. cni/pkg/ipset/nldeps_linux.go

    	if err != nil {
    		return fmt.Errorf("failed to delete IP %s with and proto %d from ipset %s: %w", ip, ipProto, name, err)
    	}
    	return nil
    }
    
    func (m *realDeps) flush(name string) error {
    	err := netlink.IpsetFlush(name)
    	if err != nil {
    		return fmt.Errorf("failed to flush ipset %s: %w", name, err)
    	}
    	return nil
    }
    
    // Alpine and some distros struggles with this - ipset CLI utilities support this, but
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    				return
    			}
    			grid.PutByteBuffer(entry)
    			if len(traceCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    		case <-keepAliveTicker.C:
    			if len(traceCh) > 0 {
    				continue
    			}
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    			w.(http.Flusher).Flush()
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  10. src/archive/zip/writer.go

    	if w.cw.count != 0 {
    		panic("zip: SetOffset called after data was written")
    	}
    	w.cw.count = n
    }
    
    // Flush flushes any buffered data to the underlying writer.
    // Calling Flush is not normally necessary; calling Close is sufficient.
    func (w *Writer) Flush() error {
    	return w.cw.w.(*bufio.Writer).Flush()
    }
    
    // SetComment sets the end-of-central-directory comment field.
    // It can only be called before [Writer.Close].
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top