aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
...
| * | | Skeleton ExtORPort implementation. Needs testing, documentation.Nick Mathewson2013-07-18
| | | | | | | | | | | | | | | | Does not implement TransportControlPort yet.
* | | | Prepare patch for ticket 5129 for merging.Peter Retzlaff2013-08-02
|/ / / | | | | | | | | | | | | | | | - Preserve old eventdns code. - Add function to close sockets cross-platform, without accounting. - Add changes/ file.
* | | Fix two pre-coffee typosPeter Palfrader2013-07-15
| | |
* | | Reject relative control socket paths and emit a warning.Peter Palfrader2013-07-15
| | | | | | | | | | | | | | | | | | | | | | | | Previously we would accept relative paths, but only if they contained a slash somewhere (not at the end). Otherwise we would silently not work. Closes: #9258. Bugfix on 0.2.3.16-alpha.
* | | Tweak fix for #8789 a bit; avoid double-close and add changes fileNick Mathewson2013-05-24
| | |
* | | Close socket at err target.Arlo Breault2013-05-24
| |/ |/| | | | | | | In connection_listener_new(). See #8789.
* | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-24
|\|
| * Merge remote-tracking branch 'public/bug6026' into maint-0.2.4Nick Mathewson2013-04-24
| |\
| | * Treat a changed IPv6 ORPort like an IPv4 one in retry_all_listeners()Nick Mathewson2013-03-11
| | | | | | | | | | | | Fix for bug 6026
* | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-12
|\| |
| * | Merge remote-tracking branch 'public/bug5650_squashed' into maint-0.2.4Nick Mathewson2013-04-12
| |\ \
| | * | Avoid busy-looping on WANTREAD within connection_handle_writeNick Mathewson2013-04-12
| | | | | | | | | | | | | | | | | | | | Fix for bug 5650. Also, if we get a WANTREAD while reading while writing, make sure we're reading.
* | | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-11
|\| | |
| * | | Merge remote-tracking branch 'public/bug8117_023' into maint-0.2.4Nick Mathewson2013-04-11
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/tor.1.txt src/or/config.c src/or/connection.c
| | * | | Per-SOCKSPort configuration for bug 8117 fix.Nick Mathewson2013-03-20
| | |/ / | | | | | | | | | | | | | | | | | | | | This might be necessary if the bug8117 fix confuses any applications. Also add a changes file.
* | | | fix text in function commentRoger Dingledine2013-04-11
| | | | | | | | | | | | | | | | (now that we moved to libevent)
* | | | Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson2013-04-02
|\| | |
| * | | Merge remote-tracking branch 'public/bug8427' into maint-0.2.4Nick Mathewson2013-04-02
| |\ \ \
| | * | | Don't warn about not sending a socks reply if we get a write errorNick Mathewson2013-03-12
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we get a write error on a SOCKS connection, we can't send a SOCKS reply, now can we? This bug has been here since 36baf7219, where we added the "hey, I'm closing an AP connection but I haven't finished the socks handshake!" message. It's bug 8427.
* | | | Merge remote-tracking branch 'asn/bug3594_rebased_and_fixed'Nick Mathewson2013-03-19
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | Conflicts: src/common/util.c src/or/entrynodes.h
| * | | Fix various issues pointed out by Nick and Andrea.George Kadianakis2013-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Document the key=value format. - Constify equal_sign_pos. - Pass some strings that are about to be logged to escape(). - Update documentation and fix some bugs in tor_escape_str_for_socks_arg(). - Use string_is_key_value() in parse_bridge_line(). - Parenthesize a forgotten #define - Add some more comments. - Add some more unit test cases.
| * | | Send SOCKS arguments when doing SOCKS5.George Kadianakis2013-02-09
| | | |
| * | | Send SOCKS arguments when doing SOCKS4.George Kadianakis2013-02-09
| | | |
* | | | Check return values from fcntl and setsockoptNick Mathewson2013-03-18
| |_|/ |/| | | | | | | | (Based on a patch from flupzor; bug #8206)
* | | Merge remote-tracking branch 'public/wide_circ_ids'Nick Mathewson2013-02-15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/channel.h src/or/connection_or.c src/or/cpuworker.c
| * | | Replace magic constants for wide_circ_ids with inline function callsNick Mathewson2013-02-09
| | | |
| * | | Allow a v4 link protocol for 4-byte circuit IDs.Nick Mathewson2012-11-06
| | | | | | | | | | | | | | | | | | | | | | | | Implements proposal 214. Needs testing.
* | | | Fix two more coverity-spotted leaks in master.Nick Mathewson2013-02-11
| |/ / |/| | | | | | | | | | | | | | One is a probably-impossible leak if we fail to sign a consensus; another occurs when we can't look up the user we're trying to chown our sockets to.
* | | Merge remote-tracking branch 'public/easy_ratelim'Nick Mathewson2013-02-07
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/or/connection.c
| * | | Use log_fn_ratelim in a few places.Nick Mathewson2012-12-26
| | | |
* | | | Merge remote-tracking branch 'public/bug7816_023'Nick Mathewson2013-02-07
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/util.c
| * | | | Fix various small leaks on error casesNick Mathewson2012-12-28
| | | | | | | | | | | | | | | | | | | | Spotted by coverity, bug 7816, bugfix on various versions.
| * | | | Avoid leaking headers received from SSL proxyNick Mathewson2012-12-28
| | |_|/ | |/| | | | | | | | | | Fixes part of 7816. Spotted by coverity. Fix on 0.2.2.1-alpha.
* | | | Merge remote-tracking branch 'public/bug7708_023_v3_squashed'Nick Mathewson2013-02-01
|\ \ \ \
| * | | | Clarify documentation of connection_finished_flushingNick Mathewson2013-02-01
| | | | |
| * | | | Fix serious breakage in connection_handle_write_implNick Mathewson2013-02-01
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we first implemented TLS, we assumed in conneciton_handle_write that a TOR_TLS_WANT_WRITE from flush_buf_tls meant that nothing had been written. But when we moved our buffers to a ring buffer implementation back in 0.1.0.5-rc (!), we broke that invariant: it's possible that some bytes have been written but nothing. That's bad. It means that if we do a sequence of TLS writes that ends with a WANTWRITE, we don't notice that we flushed any bytes, and we don't (I think) decrement buckets. Fixes bug 7708; bugfix on 0.1.0.5-rc
* | | | Rename log() to tor_log() for loggingNick Mathewson2013-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is meant to avoid conflict with the built-in log() function in math.h. It resolves ticket 7599. First reported by dhill. This was generated with the following perl script: #!/usr/bin/perl -w -i -p s/\blog\(LOG_(ERR|WARN|NOTICE|INFO|DEBUG)\s*,\s*/log_\L$1\(/g; s/\blog\(/tor_log\(/g;
* | | | Refactor: Use SOCK_ERRNO to avoid some #ifdef _WIN32sNick Mathewson2013-01-16
| | | | | | | | | | | | | | | | Fixes ticket 6302
* | | | Update the copyright date to 201.Nick Mathewson2013-01-16
| | | |
* | | | Revert junk accidentally included with "start folding in the changes entries"Nick Mathewson2013-01-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Looks like Roger's debugging code wanted to take a tour of the world outside his sandbox. This reverts part of commit 19d37202362c0298ae2f3954b0065ccfcef0dbda.
* | | | start folding in the changes entriesRoger Dingledine2013-01-14
| |/ / |/| |
* | | Per-listener option to prefer IPv6 automaps when possible.Nick Mathewson2012-12-17
| | |
* | | Add options to turn DNS cache use on or off per client port.Nick Mathewson2012-12-17
| | | | | | | | | | | | | | | | | | (This is part 1 of making DNS cache use enabled/disabled on a per-client port basis. These options are shuffled around correctly, but don't do anything yet.)
* | | Merge branch 'win64-7260'Nick Mathewson2012-12-07
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/or/dns.c
| * | | Add a TOR_SOCKET_T_FORMAT construction for logging sockets.Nick Mathewson2012-11-02
| | |/ | |/| | | | | | | | | | | | | We need this since win64 has a 64-bit SOCKET type. Based on a patch from yayooo for 7260, forward-ported to 0.2.4.
* | | Initialize ipv{4,6}_traffic_ok in entry_connection_newNick Mathewson2012-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This one is necessary for sending BEGIN cells with sane flags when self-testing a directory port. All real entry connections were getting their ipv{4,6}_traffic_ok flags set from their listeners, and for begindir entry connections we didn't care, but for directory self-testing, we had a problem. Fixes at least one more case of 7493; if there are more lingering cases of 7493, this might fix them too. Bug not in any released version of Tor.
* | | Set IPv4/IPv6 flags correctly when being a SOCKS clientNick Mathewson2012-11-15
| | |
* | | Implement a PreferIPv6 flag for SocksPortsNick Mathewson2012-11-14
| | |
* | | Add {No,}IPv{4,6}Traffic options to SOCKSPortNick Mathewson2012-11-14
| | | | | | | | | | | | | | | | | | | | | | | | These options are for telling the SOCKSPort that it should allow or not allow connections to IPv4/IPv6 addresses. These aren't implemented yet; this is just the code to read the options and get them into the entrey_connection_t.
* | | Merge branch 'check_for_orconn_on_close_squashed' of ↵Andrea Shepard2012-11-10
|\ \ \ | | | | | | | | | | | | ssh://git-rw.torproject.org/user/andrea/tor