summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging
Commit message (Collapse)AuthorAgeFilesLines
* r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not usingJelmer Vernooij2007-10-101-3/+1
| | | | | | | the difference between these at all, and in the future the fact that INIT_OBJ_FILES include smb_build.h will be sufficient to have recompiles at the right time. (This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
* r12014: free the irpc_request structure with the irpc_call_recv functions,Stefan Metzmacher2007-10-101-5/+8
| | | | | | | to match all other _recv functions we have metze (This used to be commit bd4f85ab5f60c7430ac88062fa6a9f6cffa9596f)
* r11244: Relative path names in .mk filesJelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 24e10300906c380919d2d631bfb3b8fd6b3f54ba)
* r11214: Remove scons files (see ↵Jelmer Vernooij2007-10-101-2/+0
| | | | | | http://lists.samba.org/archive/samba-technical/2005-October/043443.html) (This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
* r10586: Add MergedObject() builder. Default to Library() ratherJelmer Vernooij2007-10-101-1/+1
| | | | | then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
* r10490: - allow deferred irpc replies to set the statusAndrew Tridgell2007-10-102-4/+7
| | | | | - add an example of deferred reply for echodata in LOCAL-IRPC (This used to be commit 858a757a6d0a614b8f13bfb6217034e8a8b69554)
* r10489: added the ability for irpc server to defer replies instead of replyingAndrew Tridgell2007-10-102-49/+86
| | | | | immediately. They set m->defer_reply = True; (This used to be commit 3dcd800a5d3340d0f4855f9f08e73896ad8c3d83)
* r10402: Make the RPC-SAMLOGON test pass against Win2k3 SP0 again.Andrew Bartlett2007-10-101-0/+2
| | | | | | | | | | | | | | I still have issues with Win2k3 SP1, and Samba4 doesn't pass it's own test for the moment, but I'm working on these issues :-) This required a change to the credentials API, so that the special case for NTLM logins using a principal was indeed handled as a special, not general case. Also don't set the realm from a ccache, as then it overrides --option=realm=. Andrew Bartlett (This used to be commit 194e8f07c0cb4685797c5a7a074577c62dfdebe3)
* r10348: Add scons scripts for remaining subsystems. Most subsystems build now,Jelmer Vernooij2007-10-101-1/+0
| | | | | | but final linking still fails (as does generating files asn1, et, idl and proto files) (This used to be commit 4f0d7f75b99c7f4388d8acb0838577d86baf68b5)
* r10336: Add sconscript for a couple more subsystems.Jelmer Vernooij2007-10-101-0/+3
| | | | (This used to be commit 59d4450453c25f5cce9b67b808ff0c4433c1d194)
* r10332: Fix the build - messaging uses UNIX_PRIVSJelmer Vernooij2007-10-101-1/+2
| | | | (This used to be commit df4a923c64a7fffea3aa01f646b3fba7a83a1b49)
* r8923: put the IRPC default timeout back to 10s (I didn't mean to commit ↵Andrew Tridgell2007-10-101-1/+1
| | | | | | | this, it was changed just for deugging) (This used to be commit a7c260e61feec210bcb5cad0f8f759544dc9dd1e)
* r8887: fixed the irpc error that caused ia64 to fail the LOCAL-IRPC testAndrew Tridgell2007-10-102-11/+16
| | | | (This used to be commit ce9a262d379b946717d0d4be4731c837e6f7373d)
* r8819: fixed a memory leak in irpc_call()Andrew Tridgell2007-10-101-1/+3
| | | | (This used to be commit 25b7524ce5029eadd48c3046297ca6bd3260b013)
* r8587: - fixed ref allocation in irpc repliesAndrew Tridgell2007-10-101-8/+24
| | | | | - make every irpc server support the irpc_uptime() call (This used to be commit eee90448268b9f673cc43076ad87529aa80d17ae)
* r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell2007-10-101-3/+4
| | | | | | | | | | | | | | S390. This is an attempt to avoid the panic we're seeing in the automatic builds. The main fixes are: - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats - use of NULL format statements to perform dn searches. - assumption that sizeof() returns an int (This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
* r8284: - fixed some uninitialised variables in the irpc codeAndrew Tridgell2007-10-101-4/+8
| | | | | | | | - added code to send multiple irpc calls in parallel, to all servers that have registered the given name, with output going in io.results[i]. This allows you to make rpc calls to multiple servers at once, which is needed for clients like smbstatus (This used to be commit 061e20e509d95ffe16d7dd6fba7db39fc7a165ed)
* r8279: make sure we hold a lock when manipulating the irpc names dbAndrew Tridgell2007-10-101-1/+21
| | | | (This used to be commit 9c408d5d7cb82e910ffb5963ddc78e5759513385)
* r8277: filled in the code for finding irpc server ids by name, storing theAndrew Tridgell2007-10-102-2/+126
| | | | | names in a tdb (This used to be commit b603a52f27bf90e71d605440d44267dcd94c6939)
* r8272: added the hooks for adding a name to a messaging context, so we willAndrew Tridgell2007-10-102-0/+11
| | | | | | be able to send a message to the "ldap_server" task without having to know its task ID. (This used to be commit 8f69867867857e0c9a9246c2dec9612ccc234724)
* r8042: give better error messageStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 70118e9529aaf7af9129df7cb3a6749598b17568)
* r7850: Support mkdir() with just one parameter. Patch fromJelmer Vernooij2007-10-101-0/+1
| | | | | | | | Steven Edwards <steven_ed4153@yahoo.com>. I've moved the Win32-specific tests to win32.m4 so it does not make any of the POSIX configure stuff more complicated. (This used to be commit bf85fdd01552f75b745fdf3159a7a87cd6521ed2)
* r7320: added support for a private pointer in irpc registered handlersAndrew Tridgell2007-10-102-5/+9
| | | | (This used to be commit eec521dffd4ca9efa7f6e31c50cf1ff365aae209)
* r7298: ensure messages are sent in order even when under extreme load. ThisAndrew Tridgell2007-10-102-2/+7
| | | | | fixes a IO_TIMEOUT problem in the messaging benchmarks (This used to be commit c8b220b65de00418d19347cf298cc80d86e8accb)
* r7296: avoid two stat() calls per message. This increases the raw messageAndrew Tridgell2007-10-101-8/+7
| | | | | | | | rate from 20k/sec to 55k/sec. The irpc rate goes from 16k/sec to 34k/sec. I should have run strace -T on this a long time ago. (This used to be commit b9281668bb0c971af14df37ec3e979b9d5ef276e)
* r7295: added an irpc benchmark. It gets about 16k messages/sec on my laptop,Andrew Tridgell2007-10-102-8/+18
| | | | | | compared to about 20k messages/sec for the raw messaging layer. I think that is quite acceptable given the extra functionality. (This used to be commit a05d38d1d91f1f54d3e3794a596b468992594852)
* r7294: implemented the irpc messaging system. This is the core of theAndrew Tridgell2007-10-103-2/+378
| | | | | | | | | | | | | | | management system I proposed on samba-technical a couple of days ago. Essentially it is a very lightweight way for any code in Samba to make IDL based rpc calls to anywhere else in the code, without the client or server having to go to the trouble of setting up a full rpc service. It can be used with any of our existing IDL, but I expect it will mostly be used for a new set of Samba specific management calls. The LOCAL-IRPC torture test demonstrates how it can be used by calling the echo_AddOne() call over this transport. (This used to be commit 3d589a09954eb8b318f567e1150b0c27412fb942)
* r7228: use socket_pending() instead of the direct ioctl in the messaging codeAndrew Tridgell2007-10-101-5/+6
| | | | (This used to be commit ca3c4e961713ffd8952fca328e27196ba2ccc0c9)
* r7211: - use ioctl(FIONREAD) to remove the artificial limit on messaging sizeAndrew Tridgell2007-10-101-42/+51
| | | | | - avoid a memcpy (This used to be commit 753839c358f45c02927b137092828f3a79158083)
* r7206: changed the messaging library to use sendto instead of a connectedAndrew Tridgell2007-10-101-119/+94
| | | | | | | | | send on the unix domain datagram socket. This gains us about 50% in speed, and also means that we don't run the risk of running out of file descriptors due to heavy messaging traffic. We now use a single file descriptor no matter how many messages are pending to any number of servers. (This used to be commit 2369170fc1b4ff9a48284779fa6d3a6254177ec1)
* r6578: brown paper bag time with the new messaging code ....Andrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit d465ff67bd10340ecd46480039f483daa82c7ebe)
* r6561: re-did the internal message system based on DGRAM unix domainAndrew Tridgell2007-10-101-138/+64
| | | | | sockets. This gains us about 40% in messaging speed. (This used to be commit f244a64ed537447e44229172427b5b6a5c64800c)
* r5304: removed lib/socket/socket.h from includes.hAndrew Tridgell2007-10-101-0/+1
| | | | (This used to be commit b902ea546d2d1327b23f40ddaeeaa8e7e3662454)
* r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell2007-10-101-0/+1
| | | | | | | | | | less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
* r5197: moved events code to lib/events/ (suggestion from metze)Andrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7f54c8a339f36aa43c9340be70ab7f0067593ef2)
* r5195: most events don't need the time of the event, so save a ↵Andrew Tridgell2007-10-101-3/+3
| | | | | | | gettimeofday() call and just use timeval_current() when its actually needed (This used to be commit 236403cc4dc2924ed6a898acae0bb44cc1688dcc)
* r5185: make all the events data structures private to events.c. This willAndrew Tridgell2007-10-101-50/+26
| | | | | | | | | | | make it possible to add optimisations to the events code such as keeping the next timed event in a sorted list, and using epoll for file descriptor events. I also removed the loop events code, as it wasn't being used anywhere, and changed timed events to always be one-shot (as adding a new timed event in the event handler is so easy to do if needed) (This used to be commit d7b4b6de51342a65bf46fce772d313f92f8d73d3)
* r5102: This is a major simplification of the logic for controlling top levelAndrew Tridgell2007-10-101-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | servers in smbd. The old code still contained a fairly bit of legacy from the time when smbd was only handling SMB connection. The new code gets rid of all of the smb_server specific code in smbd/, and creates a much simpler infrastructures for new server code. Major changes include: - simplified the process model code a lot. - got rid of the top level server and service structures completely. The top level context is now the event_context. This got rid of service.h and server.h completely (they were the most confusing parts of the old code) - added service_stream.[ch] for the helper functions that are specific to stream type services (services that handle streams, and use a logically separate process per connection) - got rid of the builtin idle_handler code in the service logic, as none of the servers were using it, and it can easily be handled by a server in future by adding its own timed_event to the event context. - fixed some major memory leaks in the rpc server code. - added registration of servers, rather than hard coding our list of possible servers. This allows for servers as modules in the future. - temporarily disabled the winbind code until I add the helper functions for that type of server - added error checking on service startup. If a configured server fails to startup then smbd doesn't startup. - cleaned up the command line handling in smbd, removing unused options (This used to be commit cf6a46c3cbde7b1eb1b86bd3882b953a2de3a42e)
* r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell2007-10-101-4/+4
| | | | | | large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
* r4944: every event_add_*() caller was having to call talloc_steal() to takeAndrew Tridgell2007-10-101-10/+5
| | | | | | | control of the event, so instead build that into the function. If you pass NULL as mem_ctx then it leaves it as a child of the events structure. (This used to be commit 7f981b9ed96f39027cbfd500f41e0c2be64cbb50)
* r4943: Smplified the events handling code a lot. The first source ofAndrew Tridgell2007-10-101-17/+4
| | | | | | | | | | | | | | | | | | | complexity was that events didn't automatically cleanup themselves. This was because the events code was written before we had talloc destructors, so you needed to call event_remove_XX() to clean the event out of the event lists from every piece of code that used events. I have now added automatic event destructors, which in turn allowed me to simplify a lot of the calling code. The 2nd source of complexity was caused by the ref_count, which was needed to cope with event handlers destroying events while handling them, which meant the linked lists became invalid, so the ref_count ws used to mark events for later destruction. The new system is much simpler. I now have a ev->destruction_count, which is incremented in all event destructors. The event dispatch code checks for changes to this and handles it. (This used to be commit a3c7417cfeab429ffb22d5546b205818f531a7b4)
* r4727: add a reference to the event contextStefan Metzmacher2007-10-101-1/+1
| | | | | | | | | | to that the destructor don't double free the registered events when the event context is first in the talloc_free() hierarchie fixes a bug with process_model_thread and the talloc_steal(conn, ev) metze (This used to be commit 05c3d1c4a6a6350cc8b5fb2ee8201ae6feed3d3d)
* r4063: - change char * -> uint8_t in struct request_bufferStefan Metzmacher2007-10-101-1/+1
| | | | | | | | | - change smbcli_read/write to take void * for the buffers to match read(2)/write(2) all this fixes a lot of gcc-4 warnings metze (This used to be commit b94f92bc6637f748d6f7049f4f9a30b0b8d18a7a)
* r3733: More build system fixes/features:Jelmer Vernooij2007-10-101-1/+0
| | | | | | - Use .mk files directly (no need for a SMB_*_MK() macro when adding a new SUBSYSTEM, MODULE or BINARY). This allows addition of new modules and subsystems without running configure - Add support for generating .dot files with the Samba4 dependency tree (as used by the graphviz and springgraph utilities) (This used to be commit 64826da834e26ee0488674e27a0eae36491ee179)
* r3507: - added deferred replies on sharing violation in pvfs open. TheAndrew Tridgell2007-10-101-10/+41
| | | | | | | | | | | | | deferred reply is short-circuited immediately when the file is closed by another user, allowing it to be opened by the waiting user. - added a sane set of timeval manipulation routines - converted all the events code and code that uses it to use struct timeval instead of time_t, which allows for microsecond resolution instead of 1 second resolution. This was needed for doing the pvfs deferred open code, and is why the patch is so big. (This used to be commit 0d51511d408d91eb5f68a35e980e0875299b1831)
* r3481: split out client.h and events.hAndrew Tridgell2007-10-101-0/+1
| | | | (This used to be commit c6f486574470a311e0d336c026103f131451e21e)
* r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ↵Andrew Tridgell2007-10-101-0/+2
| | | | | | ioctl.h) (This used to be commit b97e395c814762024336c1cf4d7c25be8da5813a)
* r3447: more include/system/XXX.h include filesAndrew Tridgell2007-10-101-0/+1
| | | | (This used to be commit 264ce9181089922547e8f6f67116f2d7277a5105)
* r3360: improved the deletion of tmp files. smbd now puts all tmp files in ↵Andrew Tridgell2007-10-101-2/+2
| | | | | | | var/locks/smbd.tmp/ and deletes that dir on startup. (This used to be commit 7e942e7f1bd2c293a0e6648df43a96f8b8a2a295)
* r3314: added a option "socket:testnonblock" to the generic socket code. IfAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | you set this option (either on the command line using --option or in smb.conf) then every socket recv or send will return short by random amounts. This allows you to test that the non-blocking socket logic in your code works correctly. I also removed the flags argument to socket_accept(), and instead made the new socket inherit the flags of the old socket, which makes more sense to me. (This used to be commit 406d356e698da01c84e8aa5b7894752b4403f63c)