aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
AgeCommit message (Collapse)Author
2015-08-23Unit test dns_resolve(), dns_clip_ttl(), dns_get_expiry_ttl().rl1987
2015-07-30Do not autoflush control connections as their outbufs get bigNick Mathewson
Doing this is no longer necessary, and it leads to weird recursions in our call graph. Closes ticket 16480.
2015-07-16Merge remote-tracking branch 'sysrqb/bug15220_026_sysrqb'Nick Mathewson
2015-06-28fix a windows unused var warningNick Mathewson
2015-06-25Validate the open file limit when creating a socketDavid Goulet
Fixes #16288 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-06-04Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-06-04Set session_group after the port's data structure has been populated.Yawning Angel
Fixes #16247, patch by "jojelino".
2015-04-28Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.Yawning Angel
These commands allow for the creation and management of ephemeral Onion ("Hidden") services that are either bound to the lifetime of the originating control connection, or optionally the lifetime of the tor instance. Implements #6411.
2015-04-23Use a custom Base64 encoder with more control over the output format.Yawning Angel
2015-03-21Initialize two variablesSebastian Hahn
This is a trivial change to get around two compiler warnings when assertions are removed during coverage builds.
2015-03-11Allow {World,Group}Writable on AF_UNIX {Socks,Control}Ports.Nick Mathewson
Closes ticket 15220
2015-03-03fix typo in commentRoger Dingledine
2015-02-23Fix running with the seccomp2 sandboxNick Mathewson
We had a regression in 0.2.6.3-alpha when we stopped saying IPPROTO_TCP to socket(). Fixes bug 14989, bugfix on 0.2.6.3-alpha.
2015-02-06Fix check-spaces complaintsSebastian Hahn
2015-01-30Correctly handle OutboundBindAddress again.Nick Mathewson
ca5ba2956bcd4b5ee1e526ccf5914f52fe6e6d51 broke this; bug not in any released Tor. Also fix a typo. Fixes 14541 and 14527. Reported by qbi.
2015-01-29Restrict unix: addresses to control and socks for nowNick Mathewson
2015-01-29Remove SocksSocket; it's now spelled differently thanks to 14451Nick Mathewson
Also, revise bug12585 changes file to mention new syntax
2015-01-28Support connection_exit_connect() to AF_UNIX socketsAndrea Shepard
2015-01-21Merge branch 'better_workqueue_v3_squashed'Nick Mathewson
2015-01-16Merge branch 'bug8546_squashed'Nick Mathewson
Conflicts: src/or/connection.c src/or/or.h src/or/relay.c
2015-01-16Replace field-by-field copy with memcpy for entry_port_cfgNick Mathewson
2015-01-16Move entry_port_cfg_t fields in entry_connection_tNick Mathewson
Also rename some options for uniformity, and apply this script: @@ entry_connection_t *conn; @@ conn-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-16Combine entry_port_cfg_t fields in listener_connection_tNick Mathewson
Also, revise the code using these options with this cocci script: @@ listener_connection_t *conn; @@ conn-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-16Split client-specific and server-specific parts of port_cfg_tNick Mathewson
Also, apply this cocci script to transform accesses. (Plus manual migration for accesses inside smartlist_foreach loops.) @@ port_cfg_t *cfgx; @@ cfgx-> +server_cfg. \( no_advertise \| no_listen \| all_addrs \| bind_ipv4_only \| bind_ipv6_only \) @@ port_cfg_t *cfgx; @@ cfgx-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-14Refactor cpuworker to use workqueue/threadpool code.Nick Mathewson
2015-01-14Do not log a notice on every socks connectionNick Mathewson
2015-01-13Fix new unused variable warning in connection_listener_newNick Mathewson
2015-01-13Explicitly chmod AF_UNIX sockets to 0600 when *GroupWritable isn't specifiedAndrea Shepard
2015-01-13Remove no-longer-accurate comment from connection.cAndrea Shepard
2015-01-12Kill duplicated code in connection_listener_new()Andrea Shepard
2015-01-07Downgrade open/close log message for SocksSocketAndrea Shepard
2015-01-07Bring sanity to connection_listener_new()Andrea Shepard
2015-01-07Rename is_tcp in connection_listener_new(), since AF_UNIX means SOCK_STREAM ↵Andrea Shepard
no longer implies TCP
2015-01-07Refactor ↵Andrea Shepard
check_location_for_unix_socket()/check_location_for_socks_unix_socket() to eliminate duplicated code
2015-01-07Commit second draft of Jake's SOCKS5-over-AF_UNIX patch. See ticket #12585.Jacob Appelbaum
Signed-off-by: Andrea Shepard <andrea@torproject.org>
2015-01-07Merge remote-tracking branch 'public/bug12985_025'Nick Mathewson
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-12-21Merge branch 'ticket7356_squashed'Nick Mathewson
2014-12-21Using CHANNEL_FINISHED macro in connection.crl1987
2014-11-27Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'Nick Mathewson
Conflicts: src/or/or.h src/test/Makefile.nmake
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2014-10-28Updating message that warns about running out of sockets we can use.rl1987
2014-09-30Track total queue size per channel, with overhead estimates, and global ↵Andrea Shepard
queue total
2014-09-29Clear the cached address from resolve_my_address() when our IP changesNick Mathewson
Closes 11582; patch from "ra".
2014-09-10Merge remote-tracking branch 'yawning/bug_8402'Nick Mathewson
2014-09-02Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-09-02Fix a number of clang analyzer false-positivesNick Mathewson
Most of these are in somewhat non-obvious code where it is probably a good idea to initialize variables and add extra assertions anyway. Closes 13036. Patches from "teor".
2014-08-29Revert "restore the sensible part of ac268a83408e1450544db2f23f364dfa3"Nick Mathewson
This reverts commit b82e166bec5fcc468424af1ff71e2e753ac534a2. We don't need that part in 0.2.5, since 0.2.5 no longer supports non-multithreaded builds.
2014-08-29Merge remote-tracking branch 'public/bug12985_024' into bug12984_025Nick Mathewson
2014-08-29restore the sensible part of ac268a83408e1450544db2f23f364dfa3Nick Mathewson
We don't want to call event_del() postfork, if cpuworkers are multiprocess.