aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
* let the circuit-launcher choose the exit node (if he wants)Roger Dingledine2004-04-01
| | | | svn:r1428
* outline what bob does to initialize his hidden servicesRoger Dingledine2004-04-01
| | | | | | | let circuit_launch_new return the circ it just made svn:r1424
* put in hooks for alice and bob logic when circuits finish/failRoger Dingledine2004-04-01
| | | | | | | | | let you specify the purpose of circuits you launch bugfix: we used to be declaring the first successful circuit too early -- when the first hop finished. now we're more accurate. svn:r1421
* allow conns to demand to be attached to a clean circuitRoger Dingledine2004-03-31
| | | | | | | (nobody uses this yet) svn:r1417
* Add an ap_bridge function to do a socketpair and skip socks.Roger Dingledine2004-03-31
| | | | | | | | | | | | | | | | | This allows us to do a directory connection *through* tor just as if we're doing it as an application. Make ap_conns tolerate it when the application sends stuff before The socks handshake is done (it just buffers it). Tell directory_initiate_command the length of the payload (because it might include nuls). Add a directory_has_arrived function to, for example, start building the rendezvous service descriptor. svn:r1412
* Add code to configure hidden services, parse configuration, generate keys ↵Nick Mathewson2004-03-31
| | | | | | and service IDs, and store/load them from disk svn:r1410
* rename hidserv_xxNick Mathewson2004-03-31
| | | | svn:r1406
* Implement hidserv_XX functions; there is still an XXX in ↵Nick Mathewson2004-03-31
| | | | | | directory_handle_command svn:r1404
* Refactor directory serversRoger Dingledine2004-03-30
| | | | | | | | | | | * read all the time (before we would ignore eof sometimes, oops) * we can handle different urls now * send back 404 for an un-handled url * commands initiated by the client can handle payloads now * introduce conn->purpose to avoid exponential state-space explosion svn:r1400
* use 'notice' loglevel for things the operator should hearRoger Dingledine2004-03-30
| | | | | | | but that aren't warnings svn:r1384
* Remove descriptors that are older than 24 hours from the directory. Use ↵Nick Mathewson2004-03-29
| | | | | | strlcat instead of strncat to generate directories. svn:r1361
* oh, i forgot to enable the find-munged-conn functionRoger Dingledine2004-03-28
| | | | svn:r1357
* only build circuits after we've fetched the directoryRoger Dingledine2004-03-27
| | | | | | | | | | | | this resolves a subtle bug where tor clients were preferentially using the directory servers, since when they start building circuits they know only about the directory servers on the other hand, it now takes longer after startup before there's a working circuit. so it goes. svn:r1350
* Add a RunTesting option to try to learn link state by creating test ↵Nick Mathewson2004-03-21
| | | | | | circuits, even when SocksPort is off. svn:r1327
* catch signals in a more portable way, so solaris can catch them tooRoger Dingledine2004-03-20
| | | | svn:r1324
* Integrate the new "rephist" [rep(utation) hist(ory)] module to traceNick Mathewson2004-03-20
| | | | | | | | | | | | | | successful/failed connections, successful/failed extends, and connection uptimes. It's still not done: more tests are needed, and not everything calls connection/circuit_mark_for_close properly. This skews the results. Also, there needs to be a 'testing' mode for non-OP ORs, where they periodically build circuits just to test whether extends work. svn:r1313
* clean up some presentation and commentsRoger Dingledine2004-03-18
| | | | svn:r1294
* bugfix: decrement OR connections from global_bucket tooRoger Dingledine2004-03-14
| | | | | | | | bugfix: don't return immediately for has_pending_tls_data unless the conn is allowed to read svn:r1270
* refactor bandwidth-control token bucketsRoger Dingledine2004-03-14
| | | | | | | | this is a checkpoint commit; there still remain some bugs, er, somewhere. svn:r1269
* get rid of those pesky tabsRoger Dingledine2004-03-12
| | | | svn:r1264
* more details when a conn is closed before it's done flushingRoger Dingledine2004-03-12
| | | | svn:r1262
* start tracking the 'broken pipe' errorRoger Dingledine2004-03-11
| | | | svn:r1261
* Make OP work on windows! (Also misc logging tweaks)Nick Mathewson2004-03-11
| | | | svn:r1258
* Make windows version correct; initialize windows foolishness so that ↵Nick Mathewson2004-03-10
| | | | | | gethostbyname works. svn:r1250
* bugfix: only set conn->hold_open_until_flushed after markingRoger Dingledine2004-03-08
| | | | svn:r1245
* fix a rare race condition: when we send a cell and thenRoger Dingledine2004-03-06
| | | | | | | | mark an OR connection expired, we might close it before finishing a flush if the other side isn't reading. svn:r1240
* stop asserting that computers always go forward in timeRoger Dingledine2004-03-06
| | | | | | | it's simply not true svn:r1236
* and a minor patchRoger Dingledine2004-03-03
| | | | svn:r1215
* holding until flush was borkedRoger Dingledine2004-03-03
| | | | | | | | | | we were never writing anything when hold_open_until_flushed was set, since conn_write returns early if marked_for_conn is set. seems a bit better now. svn:r1214
* better debugging for lonely flushesRoger Dingledine2004-03-03
| | | | svn:r1213
* use conn->hold_open_until_flushed for streamsRoger Dingledine2004-03-03
| | | | | | | and also note/fix a variety of other stream-based bugs svn:r1210
* Implement hold_open_until_flushed. I may have missed something important.Nick Mathewson2004-03-03
| | | | svn:r1209
* make socks5 not give a spurious warningRoger Dingledine2004-03-03
| | | | | | | also rename AP_CONN_STATE_CONNECTING to _CONNECT_WAIT svn:r1208
* remove redundant checkNick Mathewson2004-03-03
| | | | svn:r1204
* warn more when losing data on closed/marked connections.Nick Mathewson2004-03-03
| | | | svn:r1203
* Split out mark_for_close with circuits. Seems to work for me.Nick Mathewson2004-03-02
| | | | svn:r1197
* put switch_id and start_daemon earlierRoger Dingledine2004-02-29
| | | | svn:r1188
* print a statement when the first circ is finished,Roger Dingledine2004-02-29
| | | | | | | so the user knows it's working svn:r1179
* bugfix: only warn about an unrouter router after we've fetched a directoryRoger Dingledine2004-02-29
| | | | svn:r1178
* cwd to datadir if it's defined, rather than /Roger Dingledine2004-02-28
| | | | | | | this way people can get cores if they want to svn:r1171
* Stop trying to flush on broken sockets marked for close.Nick Mathewson2004-02-28
| | | | svn:r1163
* some comments to point nick at the latest bugsRoger Dingledine2004-02-28
| | | | svn:r1162
* some more small fixesRoger Dingledine2004-02-28
| | | | svn:r1152
* make code more readable; arrbitrarily change a -1 to a 0.Nick Mathewson2004-02-28
| | | | svn:r1151
* Push responsibility for connection marking down as far as possible; have ↵Nick Mathewson2004-02-28
| | | | | | only a close path; add some missing end cells; change return conventions a little. svn:r1149
* patches/answers to nick's commitRoger Dingledine2004-02-27
| | | | svn:r1146
* Refactor mark_for_close, connection_edge_end and friends. Now, everybodyNick Mathewson2004-02-27
| | | | | | | | | | | | | | | | who wants to shut down a connection calls connection_mark_for_close instead of setting marked_for_close to 1. This automatically removes the connection from the DNS cache if needed, sends a RELAY END cell if appropriate, and can be changed to do whatever else is needed. Still to do: - The same for circuits, maybe. - Add some kind of hold_connection_open_until_flushed flag, maybe. - Change stuff that closes connections with return -1 to use mark_for_close, maybe. svn:r1145
* Fix a bug where you might flush some data on a tls connection, and thenRoger Dingledine2004-02-27
| | | | | | | | | | add some more data to be flushed but never turn POLLOUT on. not sure how commonly this bug was hit, but it would be a doozy. Also add some asserts to see if it happens elsewhere. svn:r1142
* break out the operations done on sighup into their own functionRoger Dingledine2004-02-26
| | | | svn:r1129
* dump a new router.desc on hupRoger Dingledine2004-02-26
| | | | svn:r1128