Commit Graph

1844 Commits

Author SHA1 Message Date
Denis Makogon
caf1488dd9 Make Dispatch cleaner 2017-10-07 00:43:09 +03:00
Denis Makogon
2250e1d08c Get rid of content-length-based copying 2017-10-07 00:43:08 +03:00
Denis Makogon
1cdd241920 Trying to avoid buffers and write directly to pipe
this change makes Dispatch write request body and
 http headers directly to pipe one by one
 in case of non-empty request body,
 if not - write headers and close finalize JSON
2017-10-07 00:43:08 +03:00
Denis Makogon
955b294bc6 Trying to avoid any buffering 2017-10-07 00:43:08 +03:00
Denis Makogon
da9629d8dc Use STDIN as writer for encoding func's JSON input data instead of buffering 2017-10-07 00:43:08 +03:00
Denis Makogon
0316cd90a1 Dismiss redundant function 2017-10-07 00:43:08 +03:00
Denis Makogon
3fb040f293 Addressing comments
What's new?
  - unmarshal JSON response only in case of HTTP response writer
2017-10-07 00:43:07 +03:00
Denis Makogon
783490dc79 Addressing certain comments
What's new?
 - better error handling
 - still need to decode JSON from function because we need status code and body
 - prevent request body to be a problem by deferring its close
 - moving examples around: putting http and json samples into one folder
2017-10-07 00:43:07 +03:00
Denis Makogon
1882845a61 Respond with any error that happends during JSON dispatching 2017-10-07 00:43:07 +03:00
Denis Makogon
3da9ad4328 Using io.LimitReader as the way to control size of request body with respect to content length 2017-10-07 00:43:07 +03:00
Denis Makogon
ecaa5eefbf Cleaning up code
Getting rid of request url, call id, method: all of them are
 redundant and available through env
2017-10-07 00:43:07 +03:00
amykang2020
b6b9b55ca9 apply/make Travis's json-format branch prototype to work with latest restructured master; added StatusCode to JSONOutput server-function contract 2017-10-07 00:43:07 +03:00
CI
b8d7154747 fnlb: 0.0.107 release [skip ci] fnlb-0.0.107 2017-10-06 15:54:21 +00:00
CI
b76ae4f24d functions: 0.3.141 release [skip ci] 0.3.141 2017-10-06 15:53:01 +00:00
Reed Allman
8a59654582 go vet yourself (#397)
go vet caught some nifty bugs. so fixed those here, and also made it so that
we vet everything from now on since the robots seem to do a better job of
vetting than we have managed to.

also adds gofmt check to circle. could move this to the test.sh script (didn't
want a script calling a script, because $reasons) and it's nice and isolated
in its own little land as it is. side note, changed the script so it runs in
100ms instead of 3s, i think find is a lot faster than go list.

attempted some minor cleanup of various scripts
2017-10-06 08:42:33 -07:00
CI
d16d449626 fnlb: 0.0.106 release [skip ci] fnlb-0.0.106 2017-10-06 10:49:06 +00:00
CI
2541ee0300 functions: 0.3.140 release [skip ci] 0.3.140 2017-10-06 10:47:48 +00:00
Chris Helgert
f511cd27ed fix url in client libraries for java language wrapper (#398) 2017-10-06 13:37:29 +03:00
CI
b08edd618b fnlb: 0.0.105 release [skip ci] fnlb-0.0.105 2017-10-06 09:41:48 +00:00
CI
3669ed1c26 functions: 0.3.139 release [skip ci] 0.3.139 2017-10-06 09:40:25 +00:00
Aurélien Pupier
f1d82fccaf Fix typo balanacer --> balancer (#384) 2017-10-06 12:29:24 +03:00
CI
30ab2eae17 fnlb: 0.0.104 release [skip ci] fnlb-0.0.104 2017-10-05 23:26:15 +00:00
CI
a41eb4b1f0 functions: 0.3.138 release [skip ci] 0.3.138 2017-10-05 23:23:33 +00:00
Reed Allman
ad10dcdac5 Merge pull request #393 from fnproject/re-add-brew-docs
Revert "Update README to point people away from brew"
2017-10-05 16:12:00 -07:00
Matthew Gilliard
7d0ce84dba Revert "Update README to point people away from brew"
This reverts commit 2f1721c757.
2017-10-04 15:49:53 +01:00
CI
02715442f0 fnlb: 0.0.103 release [skip ci] fnlb-0.0.103 2017-10-04 11:39:51 +00:00
CI
64f3291ca5 functions: 0.3.137 release [skip ci] 0.3.137 2017-10-04 11:38:38 +00:00
Matthew Gilliard
9da783dd78 Merge pull request #392 from fnproject/mjg123-patch-1
Update README to point people away from brew
2017-10-04 12:28:48 +01:00
Matthew Gilliard
2f1721c757 Update README to point people away from brew
Workaround for https://github.com/fnproject/fn/issues/391
2017-10-04 10:47:25 +01:00
Travis Reeder
b520567a4c Update apps.md 2017-10-03 17:31:50 -07:00
Travis Reeder
3ad99627de Update README.md 2017-10-03 17:30:05 -07:00
Travis Reeder
e0d5fccec5 Update circle 2017-10-03 15:01:19 -07:00
Travis Reeder
06cc0fe68a Update circle 2017-10-03 14:58:30 -07:00
Travis Reeder
c2dce68828 Updated machine version for cicle 2017-10-03 14:57:24 -07:00
CI
c3ac1a2583 fnlb: 0.0.102 release [skip ci] fnlb-0.0.102 2017-10-03 15:45:21 +00:00
CI
3fc99499ed functions: 0.3.136 release [skip ci] 0.3.136 2017-10-03 15:44:08 +00:00
James Jeffrey
8df43a4fe8 Merge pull request #383 from hartmamt/patch-1
Correct header
2017-10-03 08:34:15 -07:00
Matthew Hartman
d0ea620add Correct header 2017-10-03 06:30:52 -04:00
CI
aee110ad7d fnlb: 0.0.101 release [skip ci] fnlb-0.0.101 2017-10-03 03:59:12 +00:00
CI
c64e439ac9 functions: 0.3.135 release [skip ci] 0.3.135 2017-10-03 03:57:59 +00:00
CI
a2c5e5fa27 fnlb: 0.0.100 release [skip ci] fnlb-0.0.100 2017-10-03 03:25:59 +00:00
CI
47a8065e39 functions: 0.3.134 release [skip ci] 0.3.134 2017-10-03 03:24:42 +00:00
Travis Reeder
7d1802425a Fix type 2017-10-02 20:14:51 -07:00
Travis Reeder
bb88f1535f Merge branch 'master' of https://github.com/fnproject/fn 2017-10-02 20:14:28 -07:00
Travis Reeder
c57de9c1e0 Fix typo 2017-10-02 20:14:25 -07:00
CI
9e12a46c55 fnlb: 0.0.99 release [skip ci] fnlb-0.0.99 2017-10-03 02:56:31 +00:00
CI
dd6ba0a1e4 functions: 0.3.133 release [skip ci] 0.3.133 2017-10-03 02:55:17 +00:00
Travis Reeder
46702b0755 Attempt fix of forked builds. (#382) 2017-10-02 19:45:17 -07:00
CI
6076d4e610 fnlb: 0.0.98 release [skip ci] fnlb-0.0.98 2017-10-02 22:57:47 +00:00
CI
944f3a8843 functions: 0.3.132 release [skip ci] 0.3.132 2017-10-02 22:56:30 +00:00