1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/source/torture
Andrew Tridgell 5e8fd5f701 r4951: some of the code dealing with libcli was getting too complex trying to
handle the inverted memory hierarchy that a normal session
establishment gave. The inverted hierarchy came from that fact that
you first establish a socket, then a transport, then a session and
finally a tree. That leads to the socket being at the top of the
memory hierarchy and the tree at the bottom, which makes no sense from
the users point of view, as they want to be able to free the tree and
have everything disappear.

The core problem was that the libcli interface didn't distinguish
between establishing a primary context and a secondary context. If you
establish a 2nd session on a transport then you want the transport to
be referenced by the session, whereas if you establish a primary
session then you want the transport to be a child of the session.

To fix this I have added "parent_ctx" and "primary" arguments to the
libcli intialisation functions. This makes using the library much
easier, and gives us a memory hierarchy that makes much more sense.

I was prompted to do this by a bug in the cifs backend, which was
caused by the socket not being properly torn down on a disconnect due
to the inverted memory hierarchy.
2007-10-10 13:09:09 -05:00
..
auth r3453: - split out the auth and popt includes 2007-10-10 13:05:13 -05:00
basic r4951: some of the code dealing with libcli was getting too complex trying to 2007-10-10 13:09:09 -05:00
dcom r4624: Several crash fixes for DCOM 2007-10-10 13:08:35 -05:00
ldap r4459: GENSEC refinements: 2007-10-10 13:07:53 -05:00
local r4832: added simple testing of tcp sockets to LOCAL-SOCKET test 2007-10-10 13:08:59 -05:00
nbench r4063: - change char * -> uint8_t in struct request_buffer 2007-10-10 13:06:21 -05:00
rap r4591: - converted the other _p talloc functions to not need _p 2007-10-10 13:08:30 -05:00
raw r4951: some of the code dealing with libcli was getting too complex trying to 2007-10-10 13:09:09 -05:00
rpc r4951: some of the code dealing with libcli was getting too complex trying to 2007-10-10 13:09:09 -05:00
config.mk r4831: added udp support to our generic sockets library. 2007-10-10 13:08:59 -05:00
gentest.c r4758: - added async support to the session request code 2007-10-10 13:08:50 -05:00
locktest2.c r4758: - added async support to the session request code 2007-10-10 13:08:50 -05:00
locktest.c r4758: - added async support to the session request code 2007-10-10 13:08:50 -05:00
masktest.c r4758: - added async support to the session request code 2007-10-10 13:08:50 -05:00
msgtest.c more fixes from the IRIX compiler (thanks herb!) 0001-01-01 00:00:00 +00:00
nsstest.c r4052: fixed a bunch of code to use the type safe _p allocation macros 2007-10-10 13:06:18 -05:00
smbiconv.c Add make rule for smbiconv 0001-01-01 00:00:00 +00:00
t_strcmp.c first public release of samba4 code 0001-01-01 00:00:00 +00:00
torture_util.c r4547: - added talloc_new(ctx) macro that is a neater form of the common talloc(ctx, 0) call. 2007-10-10 13:08:20 -05:00
torture.c r4899: fixed build 2007-10-10 13:09:04 -05:00
vfstest.h first public release of samba4 code 0001-01-01 00:00:00 +00:00