1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-12 04:23:49 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
Andrew Tridgell
4b976851d8 r15049: for really efficient oplock handling with thousands of open files we
will need a separate messaging endpoint per open file. To make this
efficient extend the messaging layer to have a new registration
function for temporary message types that maps via an idtree.

I have updated the LOCAL-MESSAGING test to use the new function.
2007-10-10 14:04:03 -05:00
Andrew Bartlett
fd974fb647 r13317: Create a new function messaging_client_init() which can be used when
we don't have a server messaging context.  We should replace the
datagram messages with stream sockets in this case, so we don't have
to create a unique socket.

Andrew Bartlett
2007-10-10 13:51:43 -05:00
Andrew Tridgell
858a757a6d r10490: - allow deferred irpc replies to set the status
- add an example of deferred reply for echodata in LOCAL-IRPC
2007-10-10 13:38:54 -05:00
Andrew Tridgell
3dcd800a5d r10489: added the ability for irpc server to defer replies instead of replying
immediately. They set m->defer_reply = True;
2007-10-10 13:38:54 -05:00
Andrew Tridgell
a7c260e61f r8923: put the IRPC default timeout back to 10s (I didn't mean to commit this, it was
changed just for deugging)
2007-10-10 13:30:58 -05:00
Andrew Tridgell
ce9a262d37 r8887: fixed the irpc error that caused ia64 to fail the LOCAL-IRPC test 2007-10-10 13:30:15 -05:00
Andrew Tridgell
b603a52f27 r8277: filled in the code for finding irpc server ids by name, storing the
names in a tdb
2007-10-10 13:19:30 -05:00
Andrew Tridgell
8f69867867 r8272: added the hooks for adding a name to a messaging context, so we will
be able to send a message to the "ldap_server" task without having to
know its task ID.
2007-10-10 13:19:29 -05:00
Andrew Tridgell
eec521dffd r7320: added support for a private pointer in irpc registered handlers 2007-10-10 13:17:41 -05:00
Andrew Tridgell
c8b220b65d r7298: ensure messages are sent in order even when under extreme load. This
fixes a IO_TIMEOUT problem in the messaging benchmarks
2007-10-10 13:17:38 -05:00
Andrew Tridgell
a05d38d1d9 r7295: added an irpc benchmark. It gets about 16k messages/sec on my laptop,
compared to about 20k messages/sec for the raw messaging layer. I
think that is quite acceptable given the extra functionality.
2007-10-10 13:17:38 -05:00
Andrew Tridgell
3d589a0995 r7294: implemented the irpc messaging system. This is the core of the
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.
2007-10-10 13:17:37 -05:00