summaryrefslogtreecommitdiff
path: root/ctdb/tcp
Commit message (Collapse)AuthorAgeFilesLines
...
* rename tnode->queue to tnode->out_queue to indicate this queue is for Ronnie Sahlberg2007-07-024-5/+5
| | | | | | sending data out to the other node (This used to be ctdb commit 0bc949c529094570da56c9007ff96b1f5ad02c59)
* when accepting an incoming connection, verify that the source address is Ronnie Sahlberg2007-07-021-1/+15
| | | | | | from one of the configured nodes and reject the connection othervise (This used to be ctdb commit ef290a6340eb1a1c0ae60c74b38c93396e388f73)
* implement a scheme where nodes are banned if they continuously caused the ↵Andrew Tridgell2007-06-071-1/+1
| | | | | | | | cluster to start a recovery session. The node is banned from the cluster for the RecoveryBanPeriod (default of 5 minutes) (This used to be ctdb commit 4ad43dd07f526b6002477177fbf55483246c2c0c)
* clean out some more cruftAndrew Tridgell2007-06-051-4/+4
| | | | (This used to be ctdb commit ad16c5fe2748b48a6f6c79976359d56d9bed33f4)
* - make calling of recovered event script asyncAndrew Tridgell2007-06-022-16/+31
| | | | | | - shutdown sockets before calling shutdown script (This used to be ctdb commit c5e099feef94a014a77742b6cc1d0afe78ef9da9)
* ctdb is GPL not LGPLAndrew Tridgell2007-05-314-48/+48
| | | | (This used to be ctdb commit 8624378010d1c2a1438e1e701339dfba7276f960)
* close sockets when we exec scriptsAndrew Tridgell2007-05-301-8/+4
| | | | (This used to be ctdb commit 0fac2164db4279db2d7d376a34be05b890304087)
* we need to listen at transport initialise stage to find our own node numberAndrew Tridgell2007-05-301-3/+3
| | | | (This used to be ctdb commit 4a9455dfbe95e53884b46ad26dba0c33e3432ba9)
* don't start the transport connecting to the other nodes until after the ↵Andrew Tridgell2007-05-301-2/+13
| | | | | | startup event script has run (This used to be ctdb commit afca3cc74211aa2e18b1f74d36b2add8dffcfdc7)
* fixed more warnings on 64 bit boxesAndrew Tridgell2007-05-291-1/+2
| | | | (This used to be ctdb commit 2f6eae476203f8a8b28e083553204c01f224c8a5)
* removed bogus alignment checkAndrew Tridgell2007-05-261-7/+0
| | | | (This used to be ctdb commit 93fd5fd01dc61a53a91e319d5cbbe0fc8f740717)
* show op type of badly aligned packets in tcp layerAndrew Tridgell2007-05-261-0/+7
| | | | (This used to be ctdb commit 6a3e1faa2ce77ee021154d66aeaa99c51bbc8b06)
* paranoid checks for bad packets in tcp layer. Close the socket if it gets a ↵Andrew Tridgell2007-05-261-15/+25
| | | | | | bad packet (This used to be ctdb commit 1277089e5c6e1036517c63ee8c8e4ff98cb76cf8)
* make sure we find out about new nodes as fast as possibleAndrew Tridgell2007-05-252-2/+22
| | | | (This used to be ctdb commit 73f2c77166e2053625d0f76c370cf7e789a63fdf)
* enable TCP keepalivesAndrew Tridgell2007-05-151-0/+4
| | | | (This used to be ctdb commit a44f760f6260359201d8431d2f1267af2bc6b1b1)
* fixed two more places where we don't correctly handle write errors on socketsAndrew Tridgell2007-05-151-2/+1
| | | | (This used to be ctdb commit f4a71bb63e7f75d21b66f9eaeac997c2029cd146)
* fixed a fd close error on reconnectAndrew Tridgell2007-05-151-12/+0
| | | | (This used to be ctdb commit 240651a6f67f914b06e273696cef6180d788221e)
* AIX needs sin_len field for bind()Andrew Tridgell2007-05-151-0/+16
| | | | (This used to be ctdb commit cd6c35d4aa4f4a4cfeedf6902cda84e43d7aeba4)
* added a hopcount in ctdb_callAndrew Tridgell2007-05-011-1/+1
| | | | (This used to be ctdb commit 36d838801a2a2008c50322cdbfff65a308b1cd1a)
* auto-determine listen address by attempting to bind to each address in the ↵Andrew Tridgell2007-05-011-19/+107
| | | | | | cluster in turn (This used to be ctdb commit 2fab9f96df2e5b5c51c860fd65caf0e926a63e34)
* fixed some warningsAndrew Tridgell2007-04-281-3/+3
| | | | (This used to be ctdb commit b5434a40cf2db008eb1e681fcd2ceeff331324fa)
* merge from peterAndrew Tridgell2007-04-261-22/+29
| | | | (This used to be ctdb commit ddf390da2bceb5b3f431433aec424d99d98c05f4)
* - added a --torture option to all ctdb tools. This setsAndrew Tridgell2007-04-191-6/+0
| | | | | | | | | | | | | | | | CTDB_FLAG_TORTURE, which forces some race conditions to be much more likely. For example a 20% chance of not getting the lock on the first try in the daemon - abstraced the ctdb_ltdb_lock_fetch_requeue() code to allow it to work with both inter-node packets and client->daemon packets - fixed a bug left over in ctdb_call from when the client updated the header on a call reply - removed CTDB_FLAG_CONNECT_WAIT flag (not needed any more) (This used to be ctdb commit 7559dcd184666c3853127e3c8f5baef4fea327c4)
* - make he packet allocation routines take a mem_ctx, which allowsAndrew Tridgell2007-04-191-2/+2
| | | | | | | | | us to put memory directly in the right context, avoiding quite a few talloc_steal calls, and simplifying the code - make the fetch lock code in the daemon fully async (This used to be ctdb commit d98b4b4fcadad614861c0d44a3854d97b01d0f74)
* make sure we notify ctdb when a node diesAndrew Tridgell2007-04-171-0/+4
| | | | (This used to be ctdb commit 598feb4fb9badcf329837965ad39e0f0dfe28498)
* private -> private_data for samba3Andrew Tridgell2007-04-132-6/+6
| | | | (This used to be ctdb commit 080b6901173afb2ad618dd0621876ff478c7d6e5)
* Rename "private" to "private_data"Volker Lendecke2007-04-113-13/+16
| | | | (This used to be ctdb commit 78cf4443ac0c66fb750ef6919bcdec189ac219c9)
* fix the queueing for partially connected tcp socketsAndrew Tridgell2007-04-103-3/+7
| | | | (This used to be ctdb commit 55f1c2442a53a547302669a4fdd0f1c1deeed930)
* make some functions static, and remove an unused structureAndrew Tridgell2007-04-102-4/+4
| | | | (This used to be ctdb commit 8d09cac96b2c604a68e4903346cc9db3a66d80da)
* made all sockets handle partial IOAndrew Tridgell2007-04-103-153/+38
| | | | | | abstract IO via ctdb_queue_*() functions (This used to be ctdb commit 636ae76f4632b29231db87be32c9114f58b37840)
* change the tcp code to call ctdb_read_pdu() instead of doing the partial ↵Ronnie sahlberg2007-04-102-83/+28
| | | | | | read thing explicitely (This used to be ctdb commit 6156bec0187df27578afd5afa3fcaadb1a202030)
* move the checking of the CONNECT_WAIT flag into the start method for tcpRonnie sahlberg2007-04-101-0/+6
| | | | (This used to be ctdb commit 44f3e4456d931af642192e034f84c961ab1fdcf0)
* When we create a tcp connection to a remote ctdb node do an explicit bind() ↵Ronnie sahlberg2007-04-061-1/+16
| | | | | | | | | to set our source side to the same ip address as we use to listen to ctdb traffic. We need this since there is no guarantee that INADDR_ANY (which would be defaulted to if we dont bind) would be routable from the remote host. This is entirely possible to happen since CTDB traffic is likely to be isolated to a private non-routable network. (This used to be ctdb commit e0743d2f84ca0088734c912e210deb93a6b78860)
* added --num-msgs option Andrew Tridgell2007-02-201-0/+3
| | | | | | added TCP_NODELAY on tcp sockets (This used to be ctdb commit fa76cff388237adea98c2be0827c54334080256a)
* support hostnames for node namesAndrew Tridgell2007-02-201-2/+22
| | | | (This used to be ctdb commit 5c45b51ec42cdbadce7870b47b765a79d8d41b8b)
* merged from samba4 ctdbAndrew Tridgell2007-02-071-9/+2
| | | | (This used to be ctdb commit 677fd2a7758b743ea920d0b3adb85fbb3f1ff49e)
* merge fixes from samba4Andrew Tridgell2007-01-233-11/+20
| | | | (This used to be ctdb commit fb90a5424348d0b6ed9a1b8da4ceadcc4d1a1cb1)
* simple ctdb benchmarkAndrew Tridgell2006-12-191-1/+0
| | | | (This used to be ctdb commit eb80fd212472fe3b111dabe7adf6dd507fe3656a)
* enforce the tcp memory alignment in packet queue Andrew Tridgell2006-12-193-1/+7
| | | | (This used to be ctdb commit 222f53a3205509a45fbc3267297521df22a414ec)
* added handling of partial packet readsAndrew Tridgell2006-12-194-12/+90
| | | | | | | added transport level packet allocator, allowing the transport to enforce alignment or special memory rules (This used to be ctdb commit 50304a5c4d8d640732678eeed793857334ca5ec1)
* queue up packets to nodes that aren't connected yet. This avoids aAndrew Tridgell2006-12-012-7/+6
| | | | | | startup race condition in the test suite (This used to be ctdb commit b623ac755de843a3386a7c0e882d651b7f20d482)
* - added ctdb_set_flags() callAndrew Tridgell2006-12-013-4/+3
| | | | | | | | | | | | | | | | | | - added --self-connect option to ctdb_test, allowing testing when a node connects to itself. not as efficient as local bypass, but very useful for testing purposes (easier to work with 1 task in gdb than 2) - split the ctdb_call() into an async triple, in the style of Samba4 async functions. So we now have ctdb_call_send(), ctdb_call_recv() and ctdb_call(). - added the main ctdb_call protocol logic. No error checking yet, but seems to work for simple cases - ensure we initialise the length argument to getsockopt() (This used to be ctdb commit 95fad717ef5ab93be3603aa11d2878876fe868d3)
* - added simple (fake) vnn systemAndrew Tridgell2006-11-282-12/+9
| | | | | | | | | | | | - split up ctdb layer code into 3 modules - added a simple test suite - added packet structures for ctdb_call - switched to an array for ctdb_node to make vnn lookup easy and fast (This used to be ctdb commit 8a17460a816a5970f2df8244a06aec55d814f186)
* - setup a convenience name field for nodesAndrew Tridgell2006-11-284-23/+188
| | | | | | | | | | | | - added basic IO handling for the tcp backend - added a ctdb_node_dead upcall - added packet queueing - adding incoming packet handling (This used to be ctdb commit 415497c952630e746e8cdcf8e1e2a7b2ac3e51fb)
* - split up tcp functions into more logical partsAndrew Tridgell2006-11-284-96/+158
| | | | | | - added upcall methods from transport to ctdb layer (This used to be ctdb commit 59f0dab652000f1c755e59567b03cf84dad7e954)
* started splitting out transport codeAndrew Tridgell2006-11-272-0/+302
(This used to be ctdb commit 3b75ef65bd0bff9c6366aba5a26b90be509fa77b)