summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rwxr-xr-xbuild.sh2
-rw-r--r--service/http/handler.go5
-rw-r--r--service/http/request.go6
-rw-r--r--service/http/uploads.go3
5 files changed, 11 insertions, 10 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c5e6b0c6..69099032 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
CHANGELOG
=========
+v1.2.3 (29.09.2018)
+------
+- reduced verbosity
+- worker list has been extracted from http service and now available for other rr based services
+
v1.2.2 (23.09.2018)
------
- new project directory structure
diff --git a/build.sh b/build.sh
index 1c2d8128..32964a57 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
cd $(dirname "${BASH_SOURCE[0]}")
OD="$(pwd)"
# Pushes application version into the build information.
-RR_VERSION=1.2.2
+RR_VERSION=1.2.3
# Hardcode some values to the core package
LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}"
diff --git a/service/http/handler.go b/service/http/handler.go
index 945cd51e..f719c751 100644
--- a/service/http/handler.go
+++ b/service/http/handler.go
@@ -72,10 +72,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
- if err = req.Open(); err != nil {
- h.handleError(w, r, err)
- return
- }
+ req.Open()
defer req.Close()
p, err := req.Payload()
diff --git a/service/http/request.go b/service/http/request.go
index d733b20c..eb5c05bd 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -109,12 +109,12 @@ func NewRequest(r *http.Request, cfg *UploadsConfig) (req *Request, err error) {
}
// Open moves all uploaded files to temporary directory so it can be given to php later.
-func (r *Request) Open() error {
+func (r *Request) Open() {
if r.Uploads == nil {
- return nil
+ return
}
- return r.Uploads.Open()
+ r.Uploads.Open()
}
// Close clears all temp file uploads
diff --git a/service/http/uploads.go b/service/http/uploads.go
index 9b205f00..7610ab28 100644
--- a/service/http/uploads.go
+++ b/service/http/uploads.go
@@ -45,7 +45,7 @@ func (u *Uploads) MarshalJSON() ([]byte, error) {
// Open moves all uploaded files to temp directory, return error in case of issue with temp directory. File errors
// will be handled individually.
-func (u *Uploads) Open() error {
+func (u *Uploads) Open() {
var wg sync.WaitGroup
for _, f := range u.list {
wg.Add(1)
@@ -56,7 +56,6 @@ func (u *Uploads) Open() error {
}
wg.Wait()
- return nil
}
// Clear deletes all temporary files.