Commit Graph

162 Commits

Author SHA1 Message Date
Elliot Glaysher
6ffbea1071 Merge remote-tracking branch 'origin/release-candidate' into lighter-than-eyre 2019-01-16 10:26:22 -08:00
Jōshin
3e7d344c01 Minor file-head cleanup
I removed anything that was in portable.h, specified proper path names,
and removed some now-wrong (?) public domain notices.
2019-01-13 22:42:00 -08:00
Joe Bryan
61afdf9309 fixes typos in http.c 2019-01-11 11:06:20 -05:00
Joe Bryan
71d27f99f0 refactors _proxy_ward_start() and _proxy_ward_plan() 2019-01-10 20:51:14 -05:00
Joe Bryan
5c0a05011a disables proxy printf on u3_ward auth failure 2019-01-10 20:20:42 -05:00
Joe Bryan
280ff87251 refactors proxy domain parsing and validation 2019-01-10 15:11:05 -05:00
Joe Bryan
a20508b49d hardcodes tcp proxy domain 2019-01-10 15:03:45 -05:00
Joe Bryan
9f6300b79b refactors and comments u3_http_ef_that() 2019-01-10 15:03:45 -05:00
Joe Bryan
4c92b65d1f refactors u3_ward/u3_warc lifecycle, preventing potential leaks 2019-01-10 13:44:46 -05:00
Elliot Glaysher
897a538c49 Merge remote-tracking branch 'origin/release-candidate' into lighter-than-eyre 2018-12-14 11:33:22 -08:00
Joe Bryan
76fbb1d918 adds and uses c3_realloc() 2018-12-08 20:09:23 -05:00
Joe Bryan
d6f02165a0 fixes use-after-free in _http_serv_start() 2018-12-08 20:09:23 -05:00
Joe Bryan
1774725e4c removes i/o polling 2018-11-26 16:29:38 -05:00
Joe Bryan
2ea9cb52fe properly zero-initialize u3_wcon linked-list pointer 2018-11-15 19:33:30 -05:00
Joe Bryan
965c43c57a fixes race in _proxy_ward_close by unlinking early 2018-11-13 14:06:35 -05:00
Elliot Glaysher
e0ea15f158 Merge remote-tracking branch 'origin/release-candidate' into lighter-than-eyre 2018-11-09 10:48:52 -08:00
Joe Bryan
ebeb785ef3 adds more specific error messages to proxy write callbacks 2018-11-06 19:43:13 -05:00
Joe Bryan
35bfb49086 Merge branch 'release-candidate' into ames-eth-keys
* release-candidate: (21 commits)
  zinc gate casting bug
  Bug fix for metal-wrapping runes
  converting iron and zinc cores to lead bug
  8. updates nock 4K spec
  7. updates %5 to require two subformulas (nock 4K)
  6. implements edit at %10 (nock 4K)
  5. removes %13 and %14 (nock 4K)
  4. emits %11 and %12 (nock 4K)
  3. implements hint at %11 and wish at %12 (nock 4K)
  2. removes %10 and %11 (nock 4K)
  1. duplicates hint (%10) and wish (%11) at %13 and %14 (nock 4K)
  Disable terminal echo on passcode entry
  increased inbound request and ward timeouts to 5 min
  mutating edit
  bail in _n_edit on invalid path
  avoid allocating an atom for _cj_bash
  bypass mat and chop directly in jam
  small memory leak for large edits
  disable hike jet, kill errant and unneccessary mutate-context-sample opcodes
  bugfixes
  ...
2018-11-01 00:16:20 -04:00
Elliot Glaysher
a5ce6d5ead WIP: Switching tasks 2018-10-31 14:43:16 -07:00
Elliot Glaysher
3af6a85052 If we don't set content_length, it won't add the header. 2018-10-24 11:39:47 -07:00
Elliot Glaysher
ee2c8bd0a9 Get http timeouts working and passing into Urbit. 2018-10-23 14:36:42 -07:00
Joe Bryan
4bcfcf0b3a completely removes -I 2018-10-16 22:55:19 -04:00
Joe Bryan
6e77aa110a starts ames on %turf card, removes -H
uses ames domain for tcp proxy, and
moves czar arvo sync after ames initialization
2018-10-16 20:51:51 -04:00
Joe Bryan
d44e415a55 refactors multi-part http responses, fixes crashes 2018-10-11 22:35:49 -04:00
Joe Bryan
7483e23b29 WIP implements multi-part http responses 2018-10-11 16:46:21 -04:00
Joe Bryan
0b13837bfa single-home's arvo, refines fake keys 2018-10-05 20:29:53 -04:00
ixv
13b291736a
Merge pull request #1033 from urbit/release-candidate-increase-timeout
increased inbound request and ward timeouts to 5 min
2018-10-05 15:55:08 -07:00
Elliot Glaysher
330d8d6f35 Not really working version of %complete. 2018-10-05 13:50:22 -07:00
Isaac Visintainer
2f92e6409f increased inbound request and ward timeouts to 5 min 2018-10-04 11:40:12 -07:00
Joe Bryan
8affdf44ea refactors http card validation
in u3_http_ef_that and u3_http_ef_form
2018-10-01 19:04:51 -04:00
Elliot Glaysher
4a1e50f9bb Handles the single response http case from %light. 2018-10-01 14:16:44 -07:00
Joe Bryan
34570e428e fixes leak in proxy when networking is disabled 2018-09-28 22:58:39 -04:00
Joe Bryan
8de9a059ce fixes leak in _http_serv_start_all
by removing calls to u3_lo_open and u3_lo_shut
2018-09-28 22:58:39 -04:00
Joe Bryan
dacb80eef0 Merge branch 'master' into https-proxy-config
* master:
  adds an http request timer to ensure connections are always closed
  moves u3_pact to vere.h, replacing the unused u3_apac
  fixes memory leak in failed cttp.c address resolution
  Remove deprecated paths from gitignore
  print error on failed syscall in _ce_patch_create()
  removes tabs from http.c
  removes orphaned telnet constants and forward declarations
2018-08-09 18:22:53 -04:00
Joe Bryan
f0c581160e increases tcp proxy listener timeout to 2 minutes 2018-07-22 00:18:03 -04:00
Joe Bryan
47557a5380 fixes dumb bug in tcp reverse proxy remote address resolution 2018-07-22 00:17:33 -04:00
Joe Bryan
123a9c7289 adds an http request timer to ensure connections are always closed 2018-07-17 13:25:19 -04:00
Joe Bryan
a08dcf8a19 adds an http request timer to ensure connections are always closed 2018-07-17 12:55:16 -04:00
Joe Bryan
9abf5bfa50 adds (disabled) h2o access log 2018-07-16 16:42:50 -04:00
Joe Bryan
9cf861990f don't leak ship-name in _proxy_ward_connect() 2018-07-16 14:24:29 -04:00
Joe Bryan
0ca3561794 refactors .http.ports write/release (avoid the loom, etc.) 2018-07-15 16:37:15 -04:00
Joe Bryan
2574b865c9 updates SSL_CTX init to support any PEM private key, simplifies error handling 2018-07-14 23:26:42 -04:00
Joe Bryan
11e76024f1 adds u3_wcon (ward candidate conn), refactors ward connection accept and auth 2018-07-14 19:01:52 -04:00
Joe Bryan
68ce42f68c enables ALPN and HTTP2 over TLS 2018-07-13 12:49:06 -04:00
Joe Bryan
92ae8c09c1 increases timeout before server struct, adds explanatory comment 2018-07-13 12:48:43 -04:00
Joe Bryan
a557a11dff closes u3_ward stream and timer sequentially, fixing use-after-free per ASan 2018-07-12 23:43:37 -04:00
Joe Bryan
8b5b5903e6 updates %wise and %that to give and receive the proxy auth nonce 2018-07-10 23:42:49 -04:00
Joe Bryan
fc0c1165b4 implements nonce-baced authentication for u3_ward proxies
with constant nonces, not yet wired to into arvo
2018-07-10 23:42:49 -04:00
Joe Bryan
f5cf585417 refactors uv_close callbacks to avoid cast 2018-07-10 23:42:49 -04:00
Joe Bryan
789bfacf21 calls u3_lo_open() and shut() in _http_rec_accept()
and notes the need in _proxy_ward_start()
2018-07-10 23:42:49 -04:00