aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
Commit message (Collapse)AuthorAge
* adding the reattach-after-timeout feature wasn't so easy after all.Roger Dingledine2004-02-18
| | | | | | | maybe it works now. svn:r1101
* retry streams where the connected cell hasn't arrived in 15 secondsRoger Dingledine2004-02-17
| | | | svn:r1100
* Propagate yes/no/maybe a little farther forward.Nick Mathewson2004-02-17
| | | | svn:r1096
* Let AP edges receive 'end' relay cells while waiting for 'connected'Roger Dingledine2004-01-20
| | | | svn:r1012
* add an ap_conn connecting state; report connecting delayRoger Dingledine2004-01-20
| | | | svn:r1011
* fix assert trigger in serverRoger Dingledine2004-01-19
| | | | | | | | | | | 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
* split the token bucket into 'rate' and 'burst' paramsRoger Dingledine2004-01-10
| | | | | | | | | | | we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982
* fix endian issue: rh.integrity was getting sent wrongRoger Dingledine2004-01-02
| | | | | | | now it's a char[4] rather than an int svn:r966
* stop a bug that straycat may have foundRoger Dingledine2004-01-01
| | | | svn:r964
* checkpoint: revamp relay cell packaging and handlingRoger Dingledine2003-12-23
| | | | | | | | include the infrastructure for inserting padding cells when there's a relay-recognized conflict, but it does not work currently. svn:r958
* make sure there's no conflict when generating stream_idsRoger Dingledine2003-12-19
| | | | svn:r955
* make a relay_header_t struct and pack/unpack funcsRoger Dingledine2003-12-19
| | | | | | | | | | | | | | 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
* remove trailing whitespaceRoger Dingledine2003-12-17
| | | | svn:r951
* infrastructure for integrity-checks in relay cellsRoger Dingledine2003-12-16
| | | | | | | | make circuit_consider_sending_sendme use connection_edge_send_command fix endian bug in relay length handling (maybe) svn:r946
* move cell size to 512 bytesRoger Dingledine2003-12-16
| | | | | | | | | 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
* Resolve format warnings on MacOS X 10.3Nick Mathewson2003-12-16
| | | | svn:r938
* Make compile warning-free on cygwinNick Mathewson2003-12-15
| | | | svn:r936
* start tracking the 'It appears I've already sent the end' warningRoger Dingledine2003-12-14
| | | | svn:r932
* document aborted attempt to merge client dns cache with server dns cacheRoger Dingledine2003-12-14
| | | | svn:r930
* change dns notation from question/answer to address/addrRoger Dingledine2003-12-14
| | | | svn:r929
* start to track the 'unexpected relay cell' warningRoger Dingledine2003-12-14
| | | | svn:r928
* general cleanupsRoger Dingledine2003-12-07
| | | | svn:r889
* fix vicious bug in connection_ap_attach_pending that caused it toRoger Dingledine2003-12-03
| | | | | | | | | | | 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
* bugfix in exit node choice: we used to find the perfect exit node but ↵Roger Dingledine2003-12-03
| | | | | | | | | | | | | | | | | then use the wrong one. bugfix in connection_ap_can_use_exit: it was using the wrong port bugfix: the OP now handles a port of '*' correctly when the IP is not yet known and it's trying to guess whether a router's exit policy might accept it. we now don't ever pick exit routers which will reject *:* attach_circuit now fails a new stream outright if it will never work. when you get an 'end' cell that resolves an IP, now it will fail the circuit outright if no safe exit nodes exist for that IP. don't try building a new circuit after an 'end' if a suitable one is already on the way. svn:r874
* start tracking a rare bug: package_raw_inbuf gets called with package_window 0Roger Dingledine2003-11-30
| | | | | | | | Nov 25 22:39:18.294 [warn] connection_edge_package_raw_inbuf(): called with package_window 0. T ell Roger. svn:r870
* stop complaining as loudly when a dns resolve failsRoger Dingledine2003-11-30
| | | | svn:r869
* Fix a few bugs in sending and receiving DNS resultsNick Mathewson2003-11-23
| | | | svn:r864
* Separate failure-count tracking from circuit-launching.Nick Mathewson2003-11-19
| | | | | | | | Increment failure counts only when circuits close without having been built. Reset failure counts only on the second, and when circuits are done building. svn:r847
* use the tor_malloc_zero wrapperRoger Dingledine2003-11-18
| | | | svn:r837
* stop client_dns_clean from calling malloc(0)Roger Dingledine2003-11-18
| | | | svn:r831
* Fix bytesex issues on in.s_addrNick Mathewson2003-11-17
| | | | svn:r826
* continue the circuit_deliver_relay_cell forward-failure bughuntRoger Dingledine2003-11-17
| | | | svn:r823
* Fix a segfault caused by a weird logic error and masked by another.Nick Mathewson2003-11-17
| | | | svn:r820
* recognize in-progress circs and don't start redundant onesRoger Dingledine2003-11-17
| | | | | | | quickly notice streams that don't have a circ on the way, and start one svn:r819
* bugfixesRoger Dingledine2003-11-16
| | | | svn:r818
* change when circuits are built and expiredRoger Dingledine2003-11-16
| | | | | | | not quite happy with it yet svn:r817
* initial patches on patchesRoger Dingledine2003-11-16
| | | | svn:r814
* Finish implementing the rest of the exitpolicy stuff, except for ↵Nick Mathewson2003-11-16
| | | | | | automatically starting circuit builds. svn:r813
* Improved exit policy syntax; basic client-side DNS caching.Nick Mathewson2003-11-14
| | | | | | | | | | | | | | | | | | | | - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and bitcounts 18.0.0.0/8. Policies are parsed on startup, not when comparing to them. - desired_path_len is now part of an opaque cpath_build_state_t structure. - END_REASON_EXITPOLICY cells no longer include a port. - RELAY_COMMAND_CONNECTED cells now include the IP address we've connected to. - connection_edge now has a client_dns cache to remember resolved addresses. It gets populated by RELAY_COMMAND_CONNECTED cells and END_REASON_EXITPOLICY cells. It gets used by connection_ap_handshake_send_begin. We don't compare it to exit policies yet. svn:r812
* connection_ap_handshake_send_begin always succeedsRoger Dingledine2003-11-12
| | | | svn:r798
* Make crypto_pseudo_rand* never fail.Nick Mathewson2003-11-12
| | | | svn:r797
* point out bugRoger Dingledine2003-11-11
| | | | svn:r791
* leave conn->socks_request around after the beginRoger Dingledine2003-11-11
| | | | | | | that way we can reuse it if we need to try another begin later svn:r788
* conn->socks_version is obsoleteRoger Dingledine2003-11-11
| | | | svn:r787
* respond to nick's questionsRoger Dingledine2003-11-11
| | | | svn:r786
* Rename aci to circ_id throughout.Nick Mathewson2003-11-11
| | | | svn:r784
* Make AP connections wait for a circuit if none exists.Nick Mathewson2003-11-11
| | | | | | | | | | | | | Also: - Refactor socks request into a separate struct - Add a separate 'waiting for circuit' state to AP connections between 'waiting for socks' and 'open'. Arma: can you check out the XXX's I've added to connection_edge? I may be mishandling some async and close logic. svn:r783
* client now survives going offline betterRoger Dingledine2003-11-10
| | | | | | | | | fix badness in usage() if neither socksport nor orrport is defined, quit obsolete connection_flush_buf() svn:r780
* play with connection_edge_send_commandRoger Dingledine2003-10-22
| | | | | | | maybe more robust now svn:r655
* make end relay cells have payloadsRoger Dingledine2003-10-22
| | | | | | | move default exit policy into config files svn:r653