aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
Commit message (Collapse)AuthorAge
...
* Make the response to 'getinfo addr-mappings/*' follow the spec.Roger Dingledine2007-03-15
| | | | svn:r9822
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson2007-03-04
| | | | | | | Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733
* r11895@catbus: nickm | 2007-02-23 15:12:58 -0500Nick Mathewson2007-02-23
| | | | | | | Make remap stream events have a souce; make them generated every time we get a successful connected or resolved cell. Also change reported stream target address to IP consistently when we get the IP from an exit node. svn:r9624
* r11826@catbus: nickm | 2007-02-16 14:58:38 -0500Nick Mathewson2007-02-16
| | | | | | | Resolve 56 DOCDOC comments. svn:r9594
* r11797@catbus: nickm | 2007-02-13 16:17:40 -0500Nick Mathewson2007-02-13
| | | | | | | Fix a longstanding dnsworker-related bug: when we decide to kill a DNS worker for having been in use too long, and we independently decide to close one of the exit connections waiting for that DNS worker (perhaps because we got an END relay cell), it was possible for us to try to double-free the connection. We were smart enough to detect this and assert, but not smart enough to fix this bug before now. This should resolve bug 390. Backport candidate. svn:r9581
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* be even pickier about our socks command. this resolves a warningRoger Dingledine2007-02-12
| | | | | | | | we get when we hang up on an unhandshaked socks connection. i'm still seeing these from polipo. darn it. svn:r9565
* remove the socks-wait verbose logging. juliusz found and fixed theRoger Dingledine2007-02-11
| | | | | | | polipo bug. svn:r9553
* more useful log messages when we give up on a streamRoger Dingledine2007-02-11
| | | | svn:r9552
* r11694@catbus: nickm | 2007-02-07 13:25:01 -0500Nick Mathewson2007-02-07
| | | | | | | Fix patch for 9510: never call control_event_stream_status on an exit connection. Should fix assert() noticed by xiando. svn:r9514
* r11673@catbus: nickm | 2007-02-06 14:40:07 -0500Nick Mathewson2007-02-07
| | | | | | | Report stream end events where a resolve succeeded or where we got a socks protocol error correctly, rather than calling both of them "INTERNAL". Turn ALREADY_SOCKS_REPLIED into a flag rather than a reason. This will help debug 367 part 2 a little. svn:r9511
* r11672@catbus: nickm | 2007-02-06 14:16:56 -0500Nick Mathewson2007-02-07
| | | | | | | Fix third case of bug 367: make circuit get sent along with END_STREAM_REASON_DESTROY stream CLOSED events. svn:r9510
* more changes. i'm all caught up now.Roger Dingledine2007-02-06
| | | | svn:r9495
* r11641@catbus: nickm | 2007-02-05 13:59:26 -0500Nick Mathewson2007-02-05
| | | | | | | Add a REMAP state to stream events so that controllers can learn exactly when the target address for a stream has changed. May help Vidalia resolve confusions related to bug 375. svn:r9484
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* r12123@Kushana: nickm | 2007-02-02 13:57:42 -0500Nick Mathewson2007-02-02
| | | | | | | Resolve remaining DOCDOC comments. svn:r9476
* If the socks handshake hasn't started, don't send aRoger Dingledine2007-01-27
| | | | | | | "DNS resolve socks failed" handshake reply; just close it. svn:r9437
* r11552@catbus: nickm | 2007-01-27 03:55:02 -0500Nick Mathewson2007-01-27
| | | | | | | | | | | | | | | | This one is a little tricky. Our BEGIN_DIR implementation has a problem: the dirserv conns will decide they can flush all their data immediately, since the edge_conns will read greedily. For our 0.1.2 workaround, we track which or_conn a bridged dirserv conn is attached to, and stop writing when its outbuf is too full, and start writing again when the or_conn's outbuf empties out a little. This requires a bit of pointer management. Let's hope it works. svn:r9432
* r11500@catbus: nickm | 2007-01-25 10:37:11 -0500Nick Mathewson2007-01-25
| | | | | | | Fix argument types in printf: try to make buildbot happier. svn:r9403
* more hints as arma tracks down a polipo bugRoger Dingledine2007-01-24
| | | | svn:r9400
* start tracking down a funny-looking log messageRoger Dingledine2007-01-24
| | | | svn:r9395
* r11987@Kushana: nickm | 2007-01-19 14:57:28 -0500Nick Mathewson2007-01-19
| | | | | | | Implement SOCKS_BAD_HOSTNAME status event. Defer remaining status events. Clean up control-spec.txt a little, and fill in recommendations for events. svn:r9374
* Expire socks connections if they spend too long waiting for theRoger Dingledine2007-01-15
| | | | | | | | | | | | | handshake to finish. Previously we would let them sit around for days, if the connecting application didn't close them either. Also take this opportunity to refactor a duplicate bit of circuituse.c. And change the semantics of SocksTimeout slightly, but I think it'll be ok. svn:r9350
* r11938@Kushana: nickm | 2007-01-11 11:02:28 -0500Nick Mathewson2007-01-11
| | | | | | | Check addresses for rfc953-saneness at exit too, and give a PROTOCOL_WARN when they fail. Also provide a mechanism to override this, so blossom can have its @@##$$^.whatever.exit hostnames if it wants. svn:r9336
* fix a bug i introduced in r9249; and more cleanups.Roger Dingledine2007-01-04
| | | | svn:r9263
* man page entries for TunnelDirConns and PreferTunneledDirConnsRoger Dingledine2007-01-04
| | | | | | | and add a todo item for nick in case he gets bored :) svn:r9260
* r11800@Kushana: nickm | 2007-01-02 16:46:45 -0500Nick Mathewson2007-01-02
| | | | | | | Remove an XXXX012 for which the answer is "not really." svn:r9244
* r11749@Kushana: nickm | 2006-12-29 00:51:42 -0500Nick Mathewson2006-12-29
| | | | | | | Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames svn:r9211
* r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500Nick Mathewson2006-12-29
| | | | | | | Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205
* r11718@Kushana: nickm | 2006-12-26 16:57:44 -0500Nick Mathewson2006-12-26
| | | | | | | Add client-side caching for reverse DNS. svn:r9194
* r11713@Kushana: nickm | 2006-12-24 22:42:08 -0500Nick Mathewson2006-12-25
| | | | | | | Better handling of internal addresses wrt X-Your-Address-Is (never believe them; never provide them.) Also, report something useful for X-Your-Address-Is with one-hop tunneled connections. svn:r9191
* Take out the '5 second' timeout from the connection retryRoger Dingledine2006-12-20
| | | | | | | | | schedule. Now the first connect attempt will wait a full 10 seconds before switching to a new circuit. Perhaps this will help a lot. Based on observations from Mike Perry. svn:r9159
* minor cleanupsRoger Dingledine2006-12-20
| | | | svn:r9158
* r11645@Kushana: nickm | 2006-12-19 14:22:36 -0500Nick Mathewson2006-12-19
| | | | | | | Reject hostnames with invalid characters, in an attempt to catch more errors earlier. Add an option to disable this behavior. svn:r9156
* Some more documentation and specs for CONNECT_DIR and BEGIN_DIR.Roger Dingledine2006-12-13
| | | | | | | Demand that BEGIN_DIR cells have an empty payload. svn:r9104
* finish enabling begin-dir cells. require one-hop circs forRoger Dingledine2006-12-13
| | | | | | | | socks-command-connect-dir streams, so we don't open new anonymity questions. svn:r9099
* Infrastructure to test BEGIN_DIR cells.Roger Dingledine2006-12-13
| | | | | | | | | | New socks command CONNECT_DIR. New config option TunnelDirConns that builds a circ ending at the directory server and delivers a BEGIN_DIR cell if it's running 0.1.2.2-alpha or later. We still need to make one-hop circs when appropriate, while making other conns avoid them. svn:r9098
* a better fix. puts r8446 to bed.Roger Dingledine2006-12-12
| | | | svn:r9096
* some more cleanups and a bugfix on r9052Roger Dingledine2006-12-10
| | | | svn:r9062
* r9853@Kushana: nickm | 2006-12-04 00:02:03 -0500Nick Mathewson2006-12-04
| | | | | | | Patch from Fabian Keil: Fix return statement in get_pf_socket() svn:r9020
* cleanups, bump to 0.1.2.4-alphaRoger Dingledine2006-12-02
| | | | svn:r9015
* r9561@Kushana: nickm | 2006-11-16 22:32:54 -0500Nick Mathewson2006-11-17
| | | | | | | | Tweaks to test-connection patch: use ".noconnect" instead of ".test" (since there are lots of ways to test things). Use a regular sequence of STREAM events (NEW followed by CLOSED) instead of a new event type. Make the function that checks the address be static and use const and strcasecmpend properly. svn:r8959
* r9560@Kushana: nickm | 2006-11-16 22:09:12 -0500Nick Mathewson2006-11-17
| | | | | | | | | | | Check in an implementation of "test" connections from Scott Squires: these connections immediately close upon reaching Tor. They're useful for apps that want to check whether they're talking to the same Tor as a given controller. (I'll be tweaking this a bit before I push.) svn:r8958
* r9319@totoro: nickm | 2006-11-14 13:04:50 -0500Nick Mathewson2006-11-14
| | | | | | | Patch from Zajcev Evgeny to make natd work properly (we needed to allow extra characters after the port number). svn:r8952
* r9309@totoro: nickm | 2006-11-13 19:05:41 -0500Nick Mathewson2006-11-14
| | | | | | | Whitespace fixes, and clean up code from last natd patch. svn:r8947
* r9308@totoro: nickm | 2006-11-13 18:41:23 -0500Nick Mathewson2006-11-14
| | | | | | | | | | Add support for (Free?)BSD's natd, which was an old way to let you have your firewall automatically redirect traffic. (Original patch from Zajcev Evgeny, updated for 0.1.2.x by tup.) svn:r8946
* r9307@totoro: nickm | 2006-11-13 18:25:56 -0500Nick Mathewson2006-11-14
| | | | | | | Patch from tup based on patch from Zajcev Evgeny: Make TransPort work even when the server wants to talk before the client. svn:r8945
* checkpoint some changes as i read diffsRoger Dingledine2006-10-20
| | | | svn:r8780
* r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400Nick Mathewson2006-10-20
| | | | | | | Have connection_about_to_close use an end_reason field in edge_connection_t to tell what reason to tell the controller for closing the stream. Set end_reason in connection_edge_end, connection_mark_unattached_ap, and everwhere we set edge_has_sent_end. Add a changelog entry. svn:r8779
* r9306@Kushana: nickm | 2006-10-20 13:27:43 -0400Nick Mathewson2006-10-20
| | | | | | | Enable reasons for stream events in all cases but CLOSED in about_to_close_connection. That one will take a little longer. svn:r8778