1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/torture
Andrew Tridgell e89fd49df7 r4757: added the ability of the clisocket level of libcli to handle async
socket connections. This was complicated by a few factors:

 - it meant moving the event context from clitransport to clisocket,
   so lots of structures changed

 - we need to asynchronously handle connection to lists of port
   numbers, not just one port number. The code internally tries each
   port in the list in turn, without ever blocking

 - the man page on how connect() is supposed to work asynchronously
   doesn't work in practice (now why doesn't this surprise me?). The
   getsockopt() for SOL_ERROR is supposed to retrieve the error, but
   in fact the next (unrelated) connect() call on the same socket also
   gets an error, though not the right error. To work around this I
   need to tear down the whole socket between each attempted port. I
   hate posix.

Note that clisocket.c still does a blocking name resolution call in
smbcli_sock_connect_byname(). That will be fixed when we add the async
NBT resolution code.

Also note that I arranged things so that every SMB connection is now
async internally, so using plain smbclient or smbtorture tests all the
async features of this new code.
(This used to be commit 468f8ebbfd)
2007-10-10 13:08:50 -05:00
..
auth r3453: - split out the auth and popt includes 2007-10-10 13:05:13 -05:00
basic r4549: got rid of a lot more uses of plain talloc(), instead using 2007-10-10 13:08:25 -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 r4591: - converted the other _p talloc functions to not need _p 2007-10-10 13:08:30 -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 r4726: - use the name tcon and tid instead of conn and cnum 2007-10-10 13:08:48 -05:00
rpc r4726: - use the name tcon and tid instead of conn and cnum 2007-10-10 13:08:48 -05:00
config.mk r4700: first attempt at a composite async function, smb_composite_loadfile(), 2007-10-10 13:08:45 -05:00
gentest.c r4591: - converted the other _p talloc functions to not need _p 2007-10-10 13:08:30 -05:00
locktest2.c r4052: fixed a bunch of code to use the type safe _p allocation macros 2007-10-10 13:06:18 -05:00
locktest.c r4052: fixed a bunch of code to use the type safe _p allocation macros 2007-10-10 13:06:18 -05:00
masktest.c r4013: got rid of a bunch of unused or unmaintained code 2007-10-10 13:06:15 -05:00
msgtest.c more fixes from the IRIX compiler (thanks herb!) 2003-08-15 18:33:43 +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 2003-11-09 16:24:31 +00:00
t_strcmp.c first public release of samba4 code 2003-08-13 01:53:07 +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 r4757: added the ability of the clisocket level of libcli to handle async 2007-10-10 13:08:50 -05:00
vfstest.h first public release of samba4 code 2003-08-13 01:53:07 +00:00