aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
* Working strerror for windows socket errors, plus some snide comments.Nick Mathewson2004-05-02
| | | | svn:r1775
* patches on patchesRoger Dingledine2004-05-02
| | | | svn:r1763
* Documenmt buffers.c; remove function that nobody ever calls.Nick Mathewson2004-05-01
| | | | svn:r1760
* Fix windows compileNick Mathewson2004-05-01
| | | | svn:r1757
* Handle windows socket errors correctly; comment most of common.Nick Mathewson2004-05-01
| | | | svn:r1756
* Use socketclose on windows as appropriate; end pid files with newlineNick Mathewson2004-04-28
| | | | svn:r1745
* use tor_lookup_hostname for binding local addresses tooRoger Dingledine2004-04-28
| | | | svn:r1744
* add a debugging entry, to find the wants-to-read-but-can't bugRoger Dingledine2004-04-26
| | | | svn:r1719
* since we don't support truncateds much, don't bother sending them;Roger Dingledine2004-04-26
| | | | | | | | | just close the circ. (this wasn't relevant before, because we were mis-handling destroys.) svn:r1711
* tell us the nickname of the OR that hung up on usRoger Dingledine2004-04-26
| | | | svn:r1706
* resolve a double-mark-for-close when things die inside connection_handle_writeRoger Dingledine2004-04-25
| | | | svn:r1702
* use tor_assertRoger Dingledine2004-04-25
| | | | | | | remove obsolete BUF_OK macro svn:r1697
* Remove onion_pkey from connection, since onion keys can change more often ↵Nick Mathewson2004-04-25
| | | | | | than connections. Also add more log messages svn:r1693
* log correctly if decoding onion failedRoger Dingledine2004-04-25
| | | | svn:r1690
* Merge flagday into main branch.Nick Mathewson2004-04-24
| | | | svn:r1683
* we added more AP conns, oopsRoger Dingledine2004-04-08
| | | | svn:r1569
* if the rend desc cache entry was fetched more than 15 mins ago,Roger Dingledine2004-04-07
| | | | | | | | then try to fetch a new one. but if the new fetch fails, use the old one. svn:r1540
* Delete trailing whitespace and expand tabs; remove unused aes decrypt codeNick Mathewson2004-04-07
| | | | svn:r1522
* alice can now look up bob's service descriptor,Roger Dingledine2004-04-05
| | | | | | | | | | | | | | | | | choose an intro point, connect to it, choose a rend point, connect to it and establish a cookie, get an ack from the rendezvous point, and know when both circs are ready for her. APConns don't use conn->purpose anymore don't initiate a renddesc lookup if one is already in progress also fix a buffer overflow in nickname parsing (only exploitable by the operator though) svn:r1471
* fix some bugs; more remainRoger Dingledine2004-04-03
| | | | svn:r1450
* 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
* bugfix: we were closing socks-request connections immediately, ratherRoger Dingledine2004-03-29
| | | | | | | than flushing them, if they were timing out before we marked them svn:r1366
* hold socks reply open until flushed (if possible)Roger Dingledine2004-03-28
| | | | svn:r1356
* work around a tsocks bugRoger Dingledine2004-03-27
| | | | | | | | 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
* fix an assert trigger where an OP would fail to handshake, and we'dRoger Dingledine2004-03-27
| | | | | | | expect it to have a nickname. svn:r1351
* a missing comma could wreak all sorts of havoc.Roger Dingledine2004-03-26
| | | | svn:r1335
* 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
* 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
* Make OP work on windows! (Also misc logging tweaks)Nick Mathewson2004-03-11
| | | | svn:r1258
* Fix DOS line endings; autoconfize checks for strptime and inet_atonNick Mathewson2004-03-09
| | | | svn:r1248
* Make tor build on windows again. More work still neededNick Mathewson2004-03-09
| | | | svn:r1247
* stop asserting that computers always go forward in timeRoger Dingledine2004-03-06
| | | | | | | it's simply not true svn:r1236
* Try to find out early if buffers get trashed or double-freed.Nick Mathewson2004-03-03
| | | | svn:r1225
* 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
* close immediately when write() fails too, else things will turn badRoger Dingledine2004-03-03
| | | | svn:r1212
* 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
* warn more when losing data on closed/marked connections.Nick Mathewson2004-03-03
| | | | svn:r1203
* bugfix: close_immediate called buf_clear but listeners don't have bufsRoger Dingledine2004-03-03
| | | | svn:r1202
* Fix assertion failure spotted by arma.Nick Mathewson2004-03-02
| | | | | | | | | | | 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
* create a separate connection_edge_destroy() functionRoger Dingledine2004-02-29
| | | | svn:r1176
* bugfix: in some cases, connection_mark_for_close wasn't marking the connRoger Dingledine2004-02-28
| | | | svn:r1174
* Split dns_cancel_pending_resolve into dns_cancel_pending_resolve (kill aNick Mathewson2004-02-28
| | | | | | | | resolve in response to a DNS worker dying) and connection_dns_remove (remove a pending connection from the resolve structure.) svn:r1168
* 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
* enable assert_connection_ok()Roger Dingledine2004-02-28
| | | | | | | we weren't actually asserting much. oops. svn:r1160
* note bug in assert_connection_okRoger Dingledine2004-02-28
| | | | svn:r1159
* clean up some log messages and severitiesRoger Dingledine2004-02-28
| | | | | | | still plenty more left to clean svn:r1158