Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 491 for ccancel (0.05 seconds)

  1. internal/grid/grid.go

    		return len(p), nil
    	case <-w.ctx.Done():
    		return 0, context.Cause(w.ctx)
    	}
    }
    
    // WriterToChannel will return an io.Writer that writes to the given channel.
    // The context both allows returning errors on writes and to ensure that
    // this isn't abandoned if the channel is no longer being read from.
    func WriterToChannel(ctx context.Context, ch chan<- []byte) io.Writer {
    	return &writerWrapper{ch: ch, ctx: ctx}
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. cmd/sftp-server-driver.go

    	case "Rmdir":
    		bucket, prefix := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			return errors.New("deleting all buckets not allowed")
    		}
    
    		cctx, cancel := context.WithCancel(context.Background())
    		defer cancel()
    
    		if prefix == "" {
    			// if all objects are not deleted yet this call may fail.
    			return clnt.RemoveBucket(cctx, bucket)
    		}
    
    		objectsCh := make(chan minio.ObjectInfo)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Feb 10 16:35:49 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  3. cmd/xl-storage-disk-id-check.go

    				p.health.waiting.Add(1)
    				go p.monitorDiskStatus(spent, fn)
    			}
    		}
    
    		// Offset checks a bit.
    		time.Sleep(time.Duration(rng.Int63n(int64(1 * time.Second))))
    
    		dctx, dcancel := context.WithCancel(ctx)
    		started := time.Now()
    		go func() {
    			timeout := time.NewTimer(globalDriveConfig.GetMaxTimeout())
    			select {
    			case <-dctx.Done():
    				if !timeout.Stop() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Apr 25 05:41:04 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/dcerpc/DcerpcMessage.java

            }
    
            if (this.ptype == 2 || this.ptype == 3) { /* Response or Fault */
                this.alloc_hint = buf.dec_ndr_long();
                buf.dec_ndr_short(); /* context id */
                buf.dec_ndr_short(); /* cancel count */
            }
            if (this.ptype == 3 || this.ptype == 13) { /* Fault */
                this.result = buf.dec_ndr_long();
            } else { /* Bind_ack or Response */
                decode_out(buf);
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  5. cmd/metacache-stream.go

    		if err != nil {
    			return err
    		}
    		if w.reuseBlocks || o.reusable {
    			metaDataPoolPut(o.metadata)
    		}
    	}
    
    	return nil
    }
    
    // stream entries to the output.
    // The returned channel should be closed when done.
    // Any error is reported when closing the metacacheWriter.
    func (w *metacacheWriter) stream() (chan<- metaCacheEntry, error) {
    	if w.creator != nil {
    		err := w.creator()
    		w.creator = nil
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 07 15:37:12 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

            }
    
            if (ptype == 2 || ptype == 3) { /* Response or Fault */
                alloc_hint = buf.dec_ndr_long();
                buf.dec_ndr_short(); /* context id */
                buf.dec_ndr_short(); /* cancel count */
            }
            if (ptype == 3 || ptype == 13) { /* Fault */
                result = buf.dec_ndr_long();
            } else { /* Bind_ack or Response */
                decode_out(buf);
            }
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

    import java.net.NetworkInterface;
    import java.net.SocketException;
    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Information about a network interface for SMB3 Multi-Channel
     */
    public class NetworkInterfaceInfo {
    
        private int interfaceIndex;
        private int capability;
        private int linkSpeed; // In units of 1 Mbps
        private byte[] sockaddrStorage;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/ntlmssp/av/AvPair.java

        /**
         * Single host type
         */
        public static final int MsvAvSingleHost = 0x08;
    
        /**
         * Target name type
         */
        public static final int MsvAvTargetName = 0x09;
    
        /**
         * Channel bindings type
         */
        public static final int MsvAvChannelBindings = 0x0A;
    
        private final int type;
        private final byte[] raw;
    
        /**
         * Constructs an AV pair with type and raw data
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                when(mockBuffer.dec_ndr_short()).thenReturn(100) // length
                        .thenReturn(0) // auth_value length
                        .thenReturn(0) // context id
                        .thenReturn(0); // cancel count
    
                message.decode(mockBuffer);
    
                assertEquals(DcerpcConstants.RPC_PT_RESPONSE, message.ptype);
                assertEquals(100, message.alloc_hint);
            }
    
            @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  10. internal/stmt_store/stmt_store.go

    	// The prepared channel is used to synchronize the statement preparation state.
    	cacheStmt := &Stmt{
    		Transaction: isTransaction,
    		prepared:    make(chan struct{}),
    	}
    	// Cache the Stmt object with the associated key.
    	s.Set(key, cacheStmt)
    	// Unlock after completing initialization to prevent deadlocks.
    	locker.Unlock()
    
    	// Ensure the prepared channel is closed after the function execution completes.
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Apr 27 06:05:16 GMT 2025
    - 6K bytes
    - Click Count (0)
Back to Top