Home | History | Annotate | Download | only in socket

Lines Matching defs:Group

9 // connecting) sockets per "group" (generally speaking, the hostname), (2)
10 // maintaining a per-group list of idle, persistent sockets for reuse, and (3)
245 // A Group is allocated per group_name when there are idle sockets or pending
246 // requests. Otherwise, the Group object is removed from the map.
253 struct Group {
254 Group() : active_socket_count(0), num_releasing_sockets(0) {}
282 typedef std::map<std::string, Group> GroupMap;
298 // Scans the group map for groups which have an available socket slot and
300 // at least one, fills |group| and |group_name| with data of the stalled group
302 int FindTopStalledGroup(Group** group, std::string* group_name);
310 // Removes |job| from |connect_job_set_|. Also updates |group| if non-NULL.
311 void RemoveConnectJob(const ConnectJob* job, Group* group);
313 // Same as OnAvailableSocketSlot except it looks up the Group first to see if
317 // Might delete the Group from |group_map_|.
318 void OnAvailableSocketSlot(const std::string& group_name, Group* group);
320 // Process a request from a group's pending_requests queue.
321 void ProcessPendingRequest(const std::string& group_name, Group* group);
323 // Assigns |socket| to |handle| and updates |group|'s counters appropriately.
328 Group* group);
330 // Adds |socket| to the list of idle sockets for |group|. |used| indicates
332 void AddIdleSocket(ClientSocket* socket, bool used, Group* group);
361 // The maximum number of sockets kept per group.
368 // Until the maximum number of sockets limit is reached, a group can only
369 // have pending requests if it exceeds the "max sockets per group" limit.
372 // be started next belong to the same group.
436 // sockets a "group" can have. |unused_idle_socket_timeout| specifies how