server wip
authorGünther Deschner <gd@samba.org>
Tue, 19 Sep 2017 18:00:42 +0000 (20:00 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 25 Jun 2018 12:56:39 +0000 (14:56 +0200)
source3/smbd/process.c
source3/smbd/smb2_server.c

index 43c007c91cbff36283245caeb9f8353b182369b7..8fe91c3bb55d8350d5e4a834a9b09171aeae835c 100644 (file)
@@ -3892,7 +3892,8 @@ NTSTATUS smbd_add_connection(struct smbXsrv_client *client, int sock_fd,
        }
 
        /* for now we only have one connection */
-       DLIST_ADD_END(client->connections, xconn);
+       DLIST_ADD(client->connections, xconn);
+       //DLIST_ADD_END(client->connections, xconn);
        xconn->client = client;
        talloc_steal(client, xconn);
 
index b27490b93a0ae4482bc64c18430c991683e01aed..140b25505ef9c796c7ba58bb5139b49ef890dcff 100644 (file)
@@ -3878,7 +3878,7 @@ static NTSTATUS smbd_smb2_flush_send_queue(struct smbXsrv_connection *xconn)
                xconn->smb2.send_queue_len--;
                DLIST_REMOVE(xconn->smb2.send_queue, e);
 
-               if (e->ack.req != NULL) {
+               if (0 && e->ack.req != NULL) {
                        e->ack.last_byte = xconn->smb2.sent_bytes;
                        DLIST_ADD_END(xconn->smb2.ack_queue, e);
                        continue;