- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for doRequest (0.24 sec)
-
pkg/test/loadbalancersim/loadbalancer/leastrequest.go
if len(lb.conns) == 1 { lb.doRequest(lb.get(0), onDone) return } // Pick 2 endpoints at random. c1, c2 := lb.pick2() // Choose the endpoint with fewer active requests. selected := c1 if c2.ActiveRequests() < c1.ActiveRequests() { selected = c2 } // Apply the selected endpoint to the metrics decorator and send the request. lb.doRequest(selected, onDone) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 20:23:34 UTC 2022 - 3.4K bytes - Viewed (0) -
src/runtime/chanbarrier_test.go
package runtime_test import ( "runtime" "sync" "testing" ) type response struct { } type myError struct { } func (myError) Error() string { return "" } func doRequest(useSelect bool) (*response, error) { type async struct { resp *response err error } ch := make(chan *async, 0) done := make(chan struct{}, 0) if useSelect { go func() { select {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 17:50:18 UTC 2024 - 1.4K bytes - Viewed (0) -
pkg/test/loadbalancersim/loadbalancer/roundrobin.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 03 18:19:25 UTC 2022 - 1.5K bytes - Viewed (0) -
pkg/test/loadbalancersim/loadbalancer/weight.go
if conn.Weight != weight { return false } } return true } func (lb *weightedConnections) get(index int) *WeightedConnection { return lb.conns[index] } func (lb *weightedConnections) doRequest(c *WeightedConnection, onDone func()) { lb.helper.Request(c.Request, onDone) } func (lb *weightedConnections) Name() string { return lb.helper.Name() } func (lb *weightedConnections) TotalRequests() uint64 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 03 18:19:25 UTC 2022 - 2.8K bytes - Viewed (0) -
src/net/http/h2_bundle.go
return nil, cancelRequest(cs, http2errRequestCanceled) } } } // doRequest runs for the duration of the request lifetime. // // It sends the request and performs post-request cleanup (closing Request.Body, etc.). func (cs *http2clientStream) doRequest(req *Request, streamf func(*http2clientStream)) { cs.cc.t.markNewGoroutine() err := cs.writeRequest(req, streamf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
// MavenProjectBuilder Implementation // ---------------------------------------------------------------------- private ProjectBuildingRequest toRequest(ProjectBuilderConfiguration configuration) { DefaultProjectBuildingRequest request = new DefaultProjectBuildingRequest(); request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Jun 15 14:24:56 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/CompatibleDaemonExpirationStrategy.java
this.daemon = daemon; this.compatibilitySpec = compatibilitySpec; } CompatibleDaemonExpirationStrategy(Daemon daemon) { this(daemon, new DaemonCompatibilitySpec(daemon.getDaemonContext().toRequest())); } @Override public DaemonExpirationResult checkExpiration() { Spec<DaemonInfo> spec = new Spec<DaemonInfo>() { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 18:27:45 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonContext.java
/** * Returns whether the daemon should use native services. */ NativeServicesMode getNativeServicesMode(); DaemonParameters.Priority getPriority(); DaemonRequestContext toRequest();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:33:15 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DefaultDaemonContext.java
return nativeServicesMode; } @Override public DaemonParameters.Priority getPriority() { return priority; } @Override public DaemonRequestContext toRequest() { return new DaemonRequestContext(Jvm.forHome(javaHome), null, this.getDaemonOpts(), this.shouldApplyInstrumentationAgent(), this.getNativeServicesMode(), this.getPriority()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:16:16 UTC 2024 - 6.8K bytes - Viewed (0) -
src/net/http/serve_test.go
// wantLog invokes doRequests, then waits for the resulting connection to // either pass through the sequence of states in want or enter a state outside // of that sequence. wantLog := func(doRequests func(), want ...ConnState) { t.Helper() complete := make(chan struct{}) activeLog <- &stateLog{want: want, complete: complete} doRequests() <-complete sl := <-activeLog
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0)