Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't accept an open ibb iq if we didn't accept the bytestream yet | Sjoerd Simons | 2009-12-18 | 1 | -0/+12 |
| | |||||
* | Make sure we only call the callback if it's still alive | Sjoerd Simons | 2009-12-18 | 1 | -4/+3 |
| | |||||
* | plug various leaks | Dafydd Harries | 2009-12-18 | 1 | -1/+1 |
| | |||||
* | remove useless \n | Guillaume Desmottes | 2009-12-07 | 1 | -1/+0 |
| | |||||
* | fix typo | Guillaume Desmottes | 2009-12-07 | 1 | -1/+1 |
| | |||||
* | remove proxy from the list if we receive an IQ error | Guillaume Desmottes | 2009-12-07 | 1 | -0/+24 |
| | |||||
* | use a timestamp instead of a timer to manage the lifetime of the proxies list | Guillaume Desmottes | 2009-12-07 | 1 | -30/+11 |
| | |||||
* | proxies_disco_cb: log a debug msg if disco failed | Guillaume Desmottes | 2009-12-07 | 1 | -1/+4 |
| | |||||
* | Always recycle the socks5_potential_proxies list | Guillaume Desmottes | 2009-12-07 | 1 | -16/+5 |
| | | | | | | We ensure that we won't query twice the same proxy by clamping the number of proxy needed to the length of the list of the potential proxies. This add the nice side effect of prioritizing a different proxy every time. | ||||
* | proxies_disco_cb: Replace the old list instead of adding elements to it | Guillaume Desmottes | 2009-12-07 | 1 | -5/+8 |
| | |||||
* | add_proxy_to_list: free the oldest proxy once removed | Guillaume Desmottes | 2009-12-07 | 1 | -0/+1 |
| | |||||
* | remove double ';' | Guillaume Desmottes | 2009-12-07 | 1 | -1/+1 |
| | |||||
* | mark the proxies list has expired after 6 hours | Guillaume Desmottes | 2009-12-07 | 1 | -0/+40 |
| | |||||
* | query proxies.telepathy.im if there is no fallback server | Guillaume Desmottes | 2009-12-07 | 1 | -2/+68 |
| | | | | This server returns a list of public proxies that can be used as fallback. | ||||
* | remove the sock5 proxies timer; instead request a new proxy if a reply is wrong | Guillaume Desmottes | 2009-12-07 | 1 | -39/+12 |
| | |||||
* | factor out query_proxies | Guillaume Desmottes | 2009-12-07 | 1 | -25/+35 |
| | |||||
* | don't recycle proxies list if that doesn't make sense | Guillaume Desmottes | 2009-12-07 | 1 | -2/+14 |
| | |||||
* | recycle the list of potential proxies | Guillaume Desmottes | 2009-12-07 | 1 | -6/+18 |
| | | | | | This avoid to get stuck with the latest proxies added in the cache once we queried all the potential proxies. | ||||
* | gabble_bytestream_factory_get_socks5_proxies: stop randomizing proxies | Guillaume Desmottes | 2009-12-07 | 1 | -4/+0 |
| | | | | The newer proxies have to be put first in the SOCKS5 stanza. | ||||
* | streamhost are identified by their host | Guillaume Desmottes | 2009-12-07 | 1 | -11/+2 |
| | | | | | | The SOCKS5 reply from the other peer only contains the jid of the streamhost. We can't have more than one proxy using the same jid as then we won't be able to know which one is used by the peer. | ||||
* | remove oldest proxy from the cache | Guillaume Desmottes | 2009-12-07 | 1 | -0/+15 |
| | |||||
* | move existing proxy to the head of the list when they are re-discovered | Guillaume Desmottes | 2009-12-07 | 1 | -6/+13 |
| | |||||
* | gabble_bytestream_factory_query_socks5_proxies: always request at least one ↵ | Guillaume Desmottes | 2009-12-07 | 1 | -5/+8 |
| | | | | | | proxy This ensure to always have at least one fresh proxy in the cache. | ||||
* | rename NB_SOCKS5_PROXIES_USED to NB_MIN_SOCKS5_PROXIES and decrease it to 3 | Guillaume Desmottes | 2009-12-07 | 1 | -3/+4 |
| | |||||
* | add_proxy_to_list: don't add twice the same proxy | Guillaume Desmottes | 2009-12-07 | 1 | -0/+28 |
| | |||||
* | bytestream-factory: factor out add_proxy_to_list | Guillaume Desmottes | 2009-12-07 | 1 | -13/+25 |
| | |||||
* | fd.o#21151: Don't query SOCKS5 proxies when we are connected | Guillaume Desmottes | 2009-11-26 | 1 | -7/+4 |
| | | | | | | We should query the SOCKS5 proxies only when we'll actually need them. Export the query method so other components will be able to start the querying process when needed. | ||||
* | Stop idle/timeout probing for proxies when we are disconnected. | Vivek Dasmohapatra | 2009-10-14 | 1 | -0/+7 |
| | |||||
* | remove NS_DATA as we already have NS_X_DATA for this namespace | Guillaume Desmottes | 2009-09-25 | 1 | -3/+3 |
| | |||||
* | remove checks made redundant by gabble_decode_jid() changes | Dafydd Harries | 2009-09-03 | 1 | -2/+2 |
| | | | | | In particular, callers no longer need to check whether returned node and resource strings are empty. | ||||
* | make gabble_decode_jid() return a boolean | Dafydd Harries | 2009-09-03 | 1 | -2/+25 |
| | | | | For now, it always returns TRUE. Also, change all callers to check the result. | ||||
* | style tweaks | Dafydd Harries | 2009-09-03 | 1 | -7/+7 |
| | |||||
* | fix indentation | Dafydd Harries | 2009-09-03 | 1 | -5/+5 |
| | |||||
* | bytestream-factory.c: bytestream_state_changed_cb: no need to remove the ↵ | Guillaume Desmottes | 2009-07-16 | 1 | -0/+5 |
| | | | | bytestream manually if we are disposing | ||||
* | bytestream-factory.c: use node iteration wrappers | Dafydd Harries | 2009-06-29 | 1 | -13/+21 |
| | |||||
* | bytestream_factory_iq_si_cb: explicitely say that ID is a muc one when | Guillaume Desmottes | 2009-05-11 | 1 | -9/+15 |
| | | | | ensuring its handle | ||||
* | add a timer when querying proxies so we'll query more if needed | Guillaume Desmottes | 2009-04-21 | 1 | -0/+30 |
| | |||||
* | bytestream-factory: only query few SOCKS5 proxies instead of the whole list | Guillaume Desmottes | 2009-04-21 | 1 | -33/+83 |
| | |||||
* | factor out randomize_g_slist | Guillaume Desmottes | 2009-04-21 | 1 | -24/+29 |
| | |||||
* | bytestream_factory_iq_si_cb: initialize self_jid so world won't explode if ↵ | Guillaume Desmottes | 2009-04-16 | 1 | -1/+1 |
| | | | | we got an error before it got a value | ||||
* | Merge branch 'master' into file-transfer | Guillaume Desmottes | 2009-04-03 | 1 | -0/+206 |
|\ | | | | | | | | | Conflicts: tests/twisted/constants.py | ||||
| * | gabble_bytestream_factory_get_socks5_proxies: randomize fallback proxies list | Guillaume Desmottes | 2009-03-26 | 1 | -2/+26 |
| | | |||||
| * | change fallback-socks5-proxy to fallback-socks5-proxies | Guillaume Desmottes | 2009-03-26 | 1 | -6/+11 |
| | | | | | | | | By using an 'as' we can define more than one fallback proxy | ||||
| * | socks5_proxy_query_reply_cb: prepend fallback proxy from the right list | Guillaume Desmottes | 2009-03-26 | 1 | -2/+2 |
| | | |||||
| * | properly cast socks5_proxy_query_reply_cb user_data | Guillaume Desmottes | 2009-03-24 | 1 | -2/+3 |
| | | |||||
| * | store fallback proxies in a separated list so we can list them after the one ↵ | Guillaume Desmottes | 2009-03-24 | 1 | -13/+35 |
| | | | | | | | | discovered on the connection | ||||
| * | rename gabble_bytestream_factory_get_socks_proxies to ↵ | Guillaume Desmottes | 2009-03-24 | 1 | -1/+1 |
| | | | | | | | | gabble_bytestream_factory_get_socks5_proxies | ||||
| * | query fallback-socks5-proxy if defined | Guillaume Desmottes | 2009-03-24 | 1 | -9/+43 |
| | | |||||
| * | track SOCKS5 proxy available in bytestream-factory and offer API to access ↵ | Guillaume Desmottes | 2009-03-24 | 1 | -0/+120 |
| | | | | | | | | to them | ||||
| * | Merge branch 'master' into socks5-reverted | Guillaume Desmottes | 2009-03-13 | 1 | -6/+1 |
| |\ | | | | | | | | | | | | | | | | | | | Conflicts: NEWS tests/twisted/tubes/tubetestutil.py |