summaryrefslogtreecommitdiff
path: root/src/bytestream-factory.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't accept an open ibb iq if we didn't accept the bytestream yetSjoerd Simons2009-12-181-0/+12
|
* Make sure we only call the callback if it's still aliveSjoerd Simons2009-12-181-4/+3
|
* plug various leaksDafydd Harries2009-12-181-1/+1
|
* remove useless \nGuillaume Desmottes2009-12-071-1/+0
|
* fix typoGuillaume Desmottes2009-12-071-1/+1
|
* remove proxy from the list if we receive an IQ errorGuillaume Desmottes2009-12-071-0/+24
|
* use a timestamp instead of a timer to manage the lifetime of the proxies listGuillaume Desmottes2009-12-071-30/+11
|
* proxies_disco_cb: log a debug msg if disco failedGuillaume Desmottes2009-12-071-1/+4
|
* Always recycle the socks5_potential_proxies listGuillaume Desmottes2009-12-071-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 itGuillaume Desmottes2009-12-071-5/+8
|
* add_proxy_to_list: free the oldest proxy once removedGuillaume Desmottes2009-12-071-0/+1
|
* remove double ';'Guillaume Desmottes2009-12-071-1/+1
|
* mark the proxies list has expired after 6 hoursGuillaume Desmottes2009-12-071-0/+40
|
* query proxies.telepathy.im if there is no fallback serverGuillaume Desmottes2009-12-071-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 wrongGuillaume Desmottes2009-12-071-39/+12
|
* factor out query_proxiesGuillaume Desmottes2009-12-071-25/+35
|
* don't recycle proxies list if that doesn't make senseGuillaume Desmottes2009-12-071-2/+14
|
* recycle the list of potential proxiesGuillaume Desmottes2009-12-071-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 proxiesGuillaume Desmottes2009-12-071-4/+0
| | | | The newer proxies have to be put first in the SOCKS5 stanza.
* streamhost are identified by their hostGuillaume Desmottes2009-12-071-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 cacheGuillaume Desmottes2009-12-071-0/+15
|
* move existing proxy to the head of the list when they are re-discoveredGuillaume Desmottes2009-12-071-6/+13
|
* gabble_bytestream_factory_query_socks5_proxies: always request at least one ↵Guillaume Desmottes2009-12-071-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 3Guillaume Desmottes2009-12-071-3/+4
|
* add_proxy_to_list: don't add twice the same proxyGuillaume Desmottes2009-12-071-0/+28
|
* bytestream-factory: factor out add_proxy_to_listGuillaume Desmottes2009-12-071-13/+25
|
* fd.o#21151: Don't query SOCKS5 proxies when we are connectedGuillaume Desmottes2009-11-261-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 Dasmohapatra2009-10-141-0/+7
|
* remove NS_DATA as we already have NS_X_DATA for this namespaceGuillaume Desmottes2009-09-251-3/+3
|
* remove checks made redundant by gabble_decode_jid() changesDafydd Harries2009-09-031-2/+2
| | | | | In particular, callers no longer need to check whether returned node and resource strings are empty.
* make gabble_decode_jid() return a booleanDafydd Harries2009-09-031-2/+25
| | | | For now, it always returns TRUE. Also, change all callers to check the result.
* style tweaksDafydd Harries2009-09-031-7/+7
|
* fix indentationDafydd Harries2009-09-031-5/+5
|
* bytestream-factory.c: bytestream_state_changed_cb: no need to remove the ↵Guillaume Desmottes2009-07-161-0/+5
| | | | bytestream manually if we are disposing
* bytestream-factory.c: use node iteration wrappersDafydd Harries2009-06-291-13/+21
|
* bytestream_factory_iq_si_cb: explicitely say that ID is a muc one whenGuillaume Desmottes2009-05-111-9/+15
| | | | ensuring its handle
* add a timer when querying proxies so we'll query more if neededGuillaume Desmottes2009-04-211-0/+30
|
* bytestream-factory: only query few SOCKS5 proxies instead of the whole listGuillaume Desmottes2009-04-211-33/+83
|
* factor out randomize_g_slistGuillaume Desmottes2009-04-211-24/+29
|
* bytestream_factory_iq_si_cb: initialize self_jid so world won't explode if ↵Guillaume Desmottes2009-04-161-1/+1
| | | | we got an error before it got a value
* Merge branch 'master' into file-transferGuillaume Desmottes2009-04-031-0/+206
|\ | | | | | | | | Conflicts: tests/twisted/constants.py
| * gabble_bytestream_factory_get_socks5_proxies: randomize fallback proxies listGuillaume Desmottes2009-03-261-2/+26
| |
| * change fallback-socks5-proxy to fallback-socks5-proxiesGuillaume Desmottes2009-03-261-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 listGuillaume Desmottes2009-03-261-2/+2
| |
| * properly cast socks5_proxy_query_reply_cb user_dataGuillaume Desmottes2009-03-241-2/+3
| |
| * store fallback proxies in a separated list so we can list them after the one ↵Guillaume Desmottes2009-03-241-13/+35
| | | | | | | | discovered on the connection
| * rename gabble_bytestream_factory_get_socks_proxies to ↵Guillaume Desmottes2009-03-241-1/+1
| | | | | | | | gabble_bytestream_factory_get_socks5_proxies
| * query fallback-socks5-proxy if definedGuillaume Desmottes2009-03-241-9/+43
| |
| * track SOCKS5 proxy available in bytestream-factory and offer API to access ↵Guillaume Desmottes2009-03-241-0/+120
| | | | | | | | to them
| * Merge branch 'master' into socks5-revertedGuillaume Desmottes2009-03-131-6/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: NEWS tests/twisted/tubes/tubetestutil.py