aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
...
* Check returns from libevent calls better; stop poking at internals of events ↵Nick Mathewson2005-02-25
| | | | | | to see if they are live. svn:r3691
* Insert missing ! in assert_connection_ok; test was accidentally reversed in ↵Nick Mathewson2005-02-24
| | | | | | revision 1.329 yesterday. Should fix bug 102 svn:r3685
* Clarify comment. Use CONN_IS_EDGE more. Try to be more zealous about calling ↵Nick Mathewson2005-02-23
| | | | | | connection_edge_end when things go bad with edge conns in connection.c svn:r3671
* Change from inet_ntoa to a threadproof tor_inet_ntoa.Nick Mathewson2005-02-22
| | | | svn:r3656
* After we successfully connect, try handling pending stuff immediately, ↵Nick Mathewson2005-02-22
| | | | | | rather than waiting for the next call to connection_handle_write. Roger: is this right? svn:r3647
* forward-port some fixesRoger Dingledine2005-02-17
| | | | svn:r3631
* when a client asks us for a dir mirror and we don't have one,Roger Dingledine2005-02-10
| | | | | | | launch an attempt to get a fresh one. svn:r3609
* remove redundant linesRoger Dingledine2005-02-09
| | | | svn:r3607
* Patch from adam langley: always remove sockets from libevent before closing ↵Nick Mathewson2005-02-09
| | | | | | them. Should fix epoll-related bugs. svn:r3606
* fix the latest bug: don't explode when some router declares aRoger Dingledine2005-02-03
| | | | | | | | | bandwidthburst of 500 gigabytes. this bug seems to have taken down most of the network. oops. svn:r3523
* define TOR_FRAGILE if you want tor to give you a core whenRoger Dingledine2005-02-01
| | | | | | | | something goes wrong. this should only be used by people actively tracking bugs. svn:r3487
* don't double-detach a closing exit conn that's waiting for dns resolveRoger Dingledine2005-01-31
| | | | svn:r3477
* but don't spring the trip on worker children, because it turnsRoger Dingledine2005-01-31
| | | | | | | out they don't actually remove anything before freeing the conns. svn:r3476
* lay a trap for situations where we connection_free somethingRoger Dingledine2005-01-31
| | | | | | | | | | that's still on one of the lists. in particular, this will detect situations where we mark-for-close and then free it ourselves. svn:r3475
* Handle unavailable hidden services better. We try each intro pointRoger Dingledine2005-01-19
| | | | | | | | | | until none are left, then we try to refetch the descriptor. If it's the same one we had before, then close streams right then. Whenever a new stream arrives, even if it's right after, optimistically try refetching the descriptor, just in case. svn:r3379
* fix another integer underflow caused by buckets going negativeRoger Dingledine2005-01-12
| | | | svn:r3346
* tolerate bandwidtch buckets going negative (i hope)Roger Dingledine2005-01-12
| | | | svn:r3344
* Make Tor use Niels Provos's libevent instead of it's currentNick Mathewson2005-01-12
| | | | | | | | | | | | poll-but-sometimes-select mess. This will let us use faster async cores (like epoll, kpoll, and /dev/poll), and hopefully work better on Windows too. There are some fairly nasty changes to main.c here; this will almost certainly break something. But hey, that's what alphas are for. svn:r3341
* Split mark-dir-failed-and-retry logic into separate function; make it retry ↵Nick Mathewson2005-01-03
| | | | | | runningrouters as well as directory fetches; note that the do-we-need-to-give-up test is wrong. svn:r3256
* Make directory fail-and-retry logic happen in connection_about_to_close(); ↵Nick Mathewson2005-01-03
| | | | | | fixes win32 bug. svn:r3253
* respond to an 009 XXXRoger Dingledine2004-12-22
| | | | svn:r3201
* clean up logging,Roger Dingledine2004-12-13
| | | | | | | | | make it clearer which warns are bugs, make the control log event match its specification, point out a bug in how we deal with failure when renewing the tls context. svn:r3138
* fix the other half of the pipe raceRoger Dingledine2004-12-07
| | | | svn:r3111
* Now we allow writing to the buffer even when the stream if marked forRoger Dingledine2004-12-04
| | | | | | | | | | | close, if we're planning to wait to flush it. This is important because we were sending a socks reject back if we're closing and hadn't already sent one, but it wasn't actually getting written since the conn was already marked-for-close. svn:r3074
* one more typoRoger Dingledine2004-12-01
| | | | svn:r3054
* Spell-check strings and commentsNick Mathewson2004-12-01
| | | | svn:r3052
* If we are using select, make sure we stay within FD_SETSIZE.Nick Mathewson2004-12-01
| | | | svn:r3051
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* put in initial support for ".nickname.exit" addresses, to let aliceRoger Dingledine2004-11-29
| | | | | | | | | | decide what exit node to use; based on a patch by geoff goodell. needs more work: e.g. it goes bananas building new circuits when the chosen exit node's exit policy rejects the connection. svn:r3015
* wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine2004-11-28
| | | | | | | totally unacceptable to me. svn:r3005
* Normalize space: add one between every control keyword and control clause.Nick Mathewson2004-11-28
| | | | svn:r3003
* remember; tor_socket_errno has side effects!Nick Mathewson2004-11-28
| | | | svn:r2997
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* update conn_state_to_stringRoger Dingledine2004-11-24
| | | | svn:r2979
* don't process marked-for-close conns further.Roger Dingledine2004-11-24
| | | | | | | (fix assert trigger -- if we're lucky.) svn:r2975
* Fix sign-related warningsNick Mathewson2004-11-22
| | | | svn:r2942
* Compile cleanly on windows; prevent some insane bandwidth cases (e.g., ↵Nick Mathewson2004-11-22
| | | | | | "BandwidthBurst 1000 TB" from occuring. svn:r2941
* break reached_eof() out of process_inbuf()Roger Dingledine2004-11-21
| | | | svn:r2930
* be more greedy about filling up all relay cells.Roger Dingledine2004-11-21
| | | | | | | | this may have some bugs in it still. and it may end up not being what we want to do. svn:r2928
* kill -USR2 now moves all logs to loglevel debugRoger Dingledine2004-11-20
| | | | | | | plus fix some typos svn:r2914
* Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting ↵Nick Mathewson2004-11-20
| | | | | | setup. More docs needed svn:r2911
* clean up socks handling, refuse connections to port 0Roger Dingledine2004-11-15
| | | | svn:r2888
* Track whether descriptor is dirty/uploaded. When any options are set, mark ↵Nick Mathewson2004-11-13
| | | | | | it dirty. Once a minute, regenerate and upload the server descriptor if it is dirty. svn:r2832
* Resolve a bunch of FIXME items; mark a lot more for attention; ask for ↵Nick Mathewson2004-11-12
| | | | | | clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs. svn:r2808
* Resolve FIXME: Possible solution to note_disconnect problem; needs thought ↵Nick Mathewson2004-11-12
| | | | | | and review. svn:r2807
* Resolve FIXMES: sometimes an error code is just an error codeNick Mathewson2004-11-12
| | | | svn:r2805
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson2004-11-09
| | | | | | target; fix a braino in dirserv.c svn:r2758
* Clean up copyrights.Roger Dingledine2004-11-07
| | | | | | | | Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
* Make options no longer a global variable.Roger Dingledine2004-11-06
| | | | | | | | | Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692
* add a ControlPort and control listener conn.Roger Dingledine2004-11-04
| | | | | | | note that print_usage is obsolete. svn:r2671