Thomas Jackson
e89da4e26b
Make AsyncAuth singleton per io_loop
...
In addition this makes the singleton instance mapping use weakrefs-- so if the io_loop goes away (or we don't reference the object anywhere) we will remove the auth instance. This allows for us to "unload" an auth without having to exit the interpreter or forcibly delete it
2015-04-07 20:53:28 -07:00
Thomas Jackson
c6245c869e
Reset asyncauth singleton in tests
2015-04-07 20:53:28 -07:00
Thomas Jackson
952d7244b5
Switch tcp req channel over to async auth libraries
2015-04-07 20:53:28 -07:00
Thomas Jackson
f7c7551224
Remove sleep from saltmessageclient
...
Now we will only run the send routine if we have something to send out. This reduces CPU load (no unecessary runs) and latency (no sleep)
2015-04-07 20:53:28 -07:00
Thomas Jackson
cade95a356
Make Sync wrapper for async req channels
2015-04-07 20:53:28 -07:00
Thomas Jackson
fd4fff89c7
Misc cleanup
2015-04-07 20:53:28 -07:00
Thomas Jackson
c7553288bf
Fix rebase collisions
...
there were some refactors which have happened over the last month, fixing those
2015-04-07 20:53:28 -07:00
Thomas Jackson
30f9d37909
Merge cleanup
2015-04-07 20:53:28 -07:00
Thomas Jackson
98b53bd1d9
Fix mocking, not quite sure how this magic mock works
2015-04-07 20:53:28 -07:00
Thomas Jackson
e04ef8b004
Always attempt to send errors to clients
2015-04-07 20:53:28 -07:00
Thomas Jackson
540710c1c3
Cleanup shutdown of tests
2015-04-07 20:53:27 -07:00
Thomas Jackson
c855770bbd
Fix misc tests
2015-04-07 20:53:27 -07:00
Thomas Jackson
b1ca45dcee
Refactor pub tests
2015-04-07 20:53:27 -07:00
Thomas Jackson
2ce0582991
Add unregister tests
2015-04-07 20:53:27 -07:00
Thomas Jackson
9ec426bdb2
Add basic Asyncpubchannel tests to zmq
2015-04-07 20:53:27 -07:00
Thomas Jackson
a68cf0820a
Remove remnants of old Sync pub channel
2015-04-07 20:53:27 -07:00
Thomas Jackson
b470346ea4
Change pubchannel over in zeromq
2015-04-07 20:53:27 -07:00
Thomas Jackson
cd2c816848
Fix syndic event forwarding
2015-04-07 20:53:27 -07:00
Thomas Jackson
181b12c6b6
Remove threading from MultiSyndic
2015-04-07 20:53:27 -07:00
Thomas Jackson
a998eb054a
Make destroy properly unload things
2015-04-07 20:53:27 -07:00
Thomas Jackson
50fc61536d
More cleanup
2015-04-07 20:53:27 -07:00
Thomas Jackson
2c36c95efc
Cleanup
2015-04-07 20:53:27 -07:00
Thomas Jackson
bdc5d6d7ed
Remove threading from MultiMinion
2015-04-07 20:53:26 -07:00
Thomas Jackson
6410b404b3
We aren't doing singleton module loaders, lets not clear what we just made
2015-04-07 20:53:26 -07:00
Thomas Jackson
bfeb3bf7f1
Misc cleanup to get the minion to use async sign_in
2015-04-07 20:53:26 -07:00
Thomas Jackson
bdbf6a33d2
misc cleanup
2015-04-07 20:53:26 -07:00
Thomas Jackson
6ab5da87c4
Cleanup async
2015-04-07 20:53:26 -07:00
Thomas Jackson
de26e7eae2
Handle timeouts in auth/pub connect
2015-04-07 20:53:26 -07:00
Thomas Jackson
8c7ee3109d
Begin work on async auth/pub/req channels.
...
For a while we'll have to maintin sync and async versions. The plan is to replace the sync ones with wraps around the async ones.
2015-04-07 20:53:26 -07:00
Thomas Jackson
1a88eeeed4
Add basic Pub channel tests
2015-04-07 20:53:26 -07:00
Thomas Jackson
d619dfbf96
Add initial req_channel tests
2015-04-07 20:53:26 -07:00
Thomas Jackson
00021ce7f4
Pylint
2015-04-07 20:53:26 -07:00
Thomas Jackson
4baec173b5
Remove unecessary imports
2015-04-07 20:53:26 -07:00
Thomas Jackson
b9d03c5307
Remove recv() from pub_channels (now we use on_recv)
2015-04-07 20:53:26 -07:00
Thomas Jackson
9094c10a1b
Since each minion object handles its own events, lets not double send :)
2015-04-07 20:53:25 -07:00
Thomas Jackson
4dd74a17a4
Remove Event poller (since we are doing IOLoops now)
2015-04-07 20:53:25 -07:00
Thomas Jackson
9cda2f03d6
Cleanup multiminion to work on the ioloop
2015-04-07 20:53:25 -07:00
Thomas Jackson
e11a914cb2
Add support for un-registering the on_recv
2015-04-07 20:53:25 -07:00
Thomas Jackson
1392cd6638
Add timeouts to tcp implementation
2015-04-07 20:53:25 -07:00
Thomas Jackson
5fb59c8692
Cleanup some IOLoops
2015-04-07 20:53:25 -07:00
Thomas Jackson
714e61f116
Don't set 'enc' to clear on clear returns, some jobs don't return dicts
2015-04-07 20:53:25 -07:00
Thomas Jackson
71c8deaddb
loop_interval is a float, lets leave it that way
2015-04-07 20:53:25 -07:00
Thomas Jackson
180408eae0
Make publisher not wait for writes
2015-04-07 20:53:25 -07:00
Thomas Jackson
034df057c6
Last switch over to iter_transport_opts (support 1->N transports)
2015-04-07 20:53:25 -07:00
Thomas Jackson
f22539d3b1
Make SaltMessageClient auto-reconnect
2015-04-07 20:53:25 -07:00
Thomas Jackson
78b69b1f63
Add scheduler
2015-04-07 20:53:25 -07:00
Thomas Jackson
54f476005f
cleanup
2015-04-07 20:53:24 -07:00
Thomas Jackson
58982b0352
Cleanup pub channel
...
Move to on_recv, remove old poller interfaces
2015-04-07 20:53:24 -07:00
Thomas Jackson
8ab5fdc36d
Basic multisyndic working now
2015-04-07 20:53:24 -07:00
Thomas Jackson
798c062d86
Misc cleanup to single minion
2015-04-07 20:53:24 -07:00