aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
Commit message (Expand)AuthorAge
* work around a tsocks bug•••when an AP connection dies early, be sure to do a socks reject for it. if you just hang up, tsocks goes into an infinite loop. svn:r1352 Roger Dingledine2004-03-27
* deal with hardware word alignment•••this was causing the seg faults on sparc processors i wonder if i got them all. svn:r1314 Roger Dingledine2004-03-20
* Integrate the new "rephist" [rep(utation) hist(ory)] module to trace•••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 Nick Mathewson2004-03-20
* Use strmap code for client DNS.•••svn:r1309 Nick Mathewson2004-03-20
* Make tor build on windows again. More work still needed•••svn:r1247 Nick Mathewson2004-03-09
* re-try streams at most 4 times•••svn:r1242 Roger Dingledine2004-03-07
* if a stream times out after 15s without a connected cell,•••don't try that circuit again. svn:r1239 Roger Dingledine2004-03-06
* holding until flush was borked•••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 Roger Dingledine2004-03-03
* don't mark_for_close again when the destroy arrives after the end cell•••svn:r1211 Roger Dingledine2004-03-03
* use conn->hold_open_until_flushed for streams•••and also note/fix a variety of other stream-based bugs svn:r1210 Roger Dingledine2004-03-03
* make socks5 not give a spurious warning•••also rename AP_CONN_STATE_CONNECTING to _CONNECT_WAIT svn:r1208 Roger Dingledine2004-03-03
* Split out mark_for_close with circuits. Seems to work for me.•••svn:r1197 Nick Mathewson2004-03-02
* Fix assertion failure spotted by arma.•••Apparently, when a DNS failure was already cached, then when we tried to mark the exit connection as closed, we'd try to remove it from the pending queue anyway, and hit an assert. Now, we put failed-resolve connections in a separate state so that mark_for_close does the right thing. svn:r1196 Nick Mathewson2004-03-02
* note an assert trigger bug•••nick, want to fix this? :) svn:r1192 Roger Dingledine2004-03-01
* fix duplicate call to connection_mark_for_close•••svn:r1187 Roger Dingledine2004-02-29
* bugfix: we were checking the wrong thing to see if 'reason'•••was out of range svn:r1186 Roger Dingledine2004-02-29
* when a stream is 15s late, print out the circuit at -l warn•••svn:r1180 Roger Dingledine2004-02-29
* create a separate connection_edge_destroy() function•••svn:r1176 Roger Dingledine2004-02-29
* bugfix: when we time out on a stream and detach, send an end first•••svn:r1175 Roger Dingledine2004-02-28
* clean up some log messages and severities•••still plenty more left to clean svn:r1158 Roger Dingledine2004-02-28
* some more small fixes•••svn:r1152 Roger Dingledine2004-02-28
* Stop answering "end" with "end"•••svn:r1150 Nick Mathewson2004-02-28
* Push responsibility for connection marking down as far as possible; have only...•••svn:r1149 Nick Mathewson2004-02-28
* Make has_sent_end irrelevant: only try to send end if reason is nonzero•••svn:r1148 Nick Mathewson2004-02-28
* patches/answers to nick's commit•••svn:r1146 Roger Dingledine2004-02-27
* Refactor mark_for_close, connection_edge_end and friends. Now, everybody•••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 Nick Mathewson2004-02-27
* make 'connected' cells include the resolved IP•••svn:r1143 Roger Dingledine2004-02-27
* adding the reattach-after-timeout feature wasn't so easy after all.•••maybe it works now. svn:r1101 Roger Dingledine2004-02-18
* retry streams where the connected cell hasn't arrived in 15 seconds•••svn:r1100 Roger Dingledine2004-02-17
* Propagate yes/no/maybe a little farther forward.•••svn:r1096 Nick Mathewson2004-02-17
* Let AP edges receive 'end' relay cells while waiting for 'connected'•••svn:r1012 Roger Dingledine2004-01-20
* add an ap_conn connecting state; report connecting delay•••svn:r1011 Roger Dingledine2004-01-20
* fix assert trigger in server•••Jan 18 04:11:43.312 [warn] connection_edge_send_command(): no circ. Closing. i think it was while sending a connected relay cell back. reason for having the circ gone is still not known. presumably the end cell arrived at just the right time. svn:r1005 Roger Dingledine2004-01-19
* split the token bucket into 'rate' and 'burst' params•••we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982 Roger Dingledine2004-01-10
* fix endian issue: rh.integrity was getting sent wrong•••now it's a char[4] rather than an int svn:r966 Roger Dingledine2004-01-02
* stop a bug that straycat may have found•••svn:r964 Roger Dingledine2004-01-01
* checkpoint: revamp relay cell packaging and handling•••include the infrastructure for inserting padding cells when there's a relay-recognized conflict, but it does not work currently. svn:r958 Roger Dingledine2003-12-23
* make sure there's no conflict when generating stream_ids•••svn:r955 Roger Dingledine2003-12-19
* make a relay_header_t struct and pack/unpack funcs•••split 7-byte stream_id string into 2-byte recognized and 2-byte stream_id fix two seg faults in fetch_from_buf_http fix several lurking seg faults in handling unexpected relay cells still need to * clean up relay_crypt * use relay dummies if there's going to be a conflict with rh.recognized * check for a conflict when generating stream_ids svn:r953 Roger Dingledine2003-12-19
* remove trailing whitespace•••svn:r951 Roger Dingledine2003-12-17
* infrastructure for integrity-checks in relay cells•••make circuit_consider_sending_sendme use connection_edge_send_command fix endian bug in relay length handling (maybe) svn:r946 Roger Dingledine2003-12-16
* move cell size to 512 bytes•••move length to 2 bytes, put it in the relay header remove 4 reserved bytes in cell add 4 bytes to relay header for the integrity check svn:r942 Roger Dingledine2003-12-16
* Resolve format warnings on MacOS X 10.3•••svn:r938 Nick Mathewson2003-12-16
* Make compile warning-free on cygwin•••svn:r936 Nick Mathewson2003-12-15
* start tracking the 'It appears I've already sent the end' warning•••svn:r932 Roger Dingledine2003-12-14
* document aborted attempt to merge client dns cache with server dns cache•••svn:r930 Roger Dingledine2003-12-14
* change dns notation from question/answer to address/addr•••svn:r929 Roger Dingledine2003-12-14
* start to track the 'unexpected relay cell' warning•••svn:r928 Roger Dingledine2003-12-14
* general cleanups•••svn:r889 Roger Dingledine2003-12-07
* fix vicious bug in connection_ap_attach_pending that caused it to••• never work. fix vicious bug in choose_good_exit_server that caused it to *skip over* pending circuits, and look only at *non-pending circuits*, when choosing a good exit node for the new circuit. bugfix: remove incorrect asserts in circuit_get_newest() svn:r876 Roger Dingledine2003-12-03