1 |
2005-05-17 Neal H. Walfield <neal@gnu.org> |
2005-05-17 Neal H. Walfield <neal@gnu.org> |
2 |
|
|
3 |
|
* connq.h (struct connq_request): Remove forward. |
4 |
|
(connq_listen): Wait for a request to be queued not until there is |
5 |
|
a connection attempt. Remove REQ parameter. Update callers. |
6 |
|
(connq_request_complete): Remove declaration. |
7 |
|
(connq_connect): Wait for a slot to queue a request not until |
8 |
|
there is an acceptor. Remove SOCK parameter. Update callers. |
9 |
|
(connq_connect_complete): New declaration. |
10 |
|
(connq_connect_cancel): New declaration. |
11 |
|
|
12 |
|
* connq.c (struct connq): Remove fields noqueue, queue, length, |
13 |
|
head and tail. Add fields head, tail, count, max, connectors and |
14 |
|
num_connectors. That is, replace the circular buffer with a |
15 |
|
singly linked list. |
16 |
|
(qnext): Remove function. |
17 |
|
(struct connq_request): Remove field signal, lock, completed and |
18 |
|
err. Add field next. |
19 |
|
(connq_request_init): Rewrite according to new semantics. |
20 |
|
(connq_request_enqueue): New function. |
21 |
|
(connq_request_dequeue): New function. |
22 |
|
(connq_create): Update according to new semantics. |
23 |
|
(connq_destroy): Likewise. |
24 |
|
(connq_listen): Rewrite to not block until there is a connector |
25 |
|
but until there is a request in the queue. |
26 |
|
(connq_request_complete): Remove function. |
27 |
|
(connq_connect): Rewrite to not block until there is an acceptor |
28 |
|
but until there is space for a request. |
29 |
|
(connq_connect_complete): New function. |
30 |
|
(connq_connect_cancel): New function. |
31 |
|
(connq_compress): Remove dead code. |
32 |
|
(connq_set_length): Rewrite. |
33 |
|
|
34 |
|
* socket.c (S_socket_connect): Create the server socket here... |
35 |
|
(S_socket_accept): ... not here. |
36 |
|
|
37 |
|
2005-05-17 Neal H. Walfield <neal@gnu.org> |
38 |
|
|
39 |
* sock.c (sock_free): Don't destroy SOCK->CONNECT_QUEUE. |
* sock.c (sock_free): Don't destroy SOCK->CONNECT_QUEUE. |
40 |
|
|
41 |
2002-06-08 Roland McGrath <roland@frob.com> |
2002-06-08 Roland McGrath <roland@frob.com> |