Skip to content

Commit 149e35b

Browse files
authored
Merge pull request #1403 from 0chain/hotfix/post-timeout
increase post timeout
2 parents 7ce03e2 + 7333c1f commit 149e35b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

code/go/0chain.net/blobbercore/challenge/protocol.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ func (cr *ChallengeEntity) LoadValidationTickets(ctx context.Context) error {
222222
allocMu.RUnlock()
223223

224224
postDataBytes, err := json.Marshal(postData)
225+
logging.Logger.Info("[challenge]post: ", zap.Any("challenge_id", cr.ChallengeID), zap.Any("post_data_len", len(postData)/(1024*1024)))
225226
if err != nil {
226227
logging.Logger.Error("[db]form: " + err.Error())
227228
cr.CancelChallenge(ctx, err)

code/go/0chain.net/core/util/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewHTTPRequest(method, url string, data []byte) (*http.Request, context.Con
2727
req.Header.Set("X-App-Client-ID", node.Self.ID)
2828
req.Header.Set("X-App-Client-Key", node.Self.PublicKey)
2929
req.Header.Set("X-App-Request-Hash", requestHash)
30-
ctx, cncl := context.WithTimeout(context.Background(), time.Second*10)
30+
ctx, cncl := context.WithTimeout(context.Background(), time.Second*60)
3131
return req, ctx, cncl, err
3232
}
3333

docker.local/base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ WORKDIR /tmp
99

1010
RUN apk upgrade
1111
RUN apk del libstdc++ gmp-dev openssl-dev vips-dev
12-
RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main libstdc++ gmp-dev openssl-dev vips-dev
12+
RUN apk add --update --no-cache libstdc++ gmp-dev openssl-dev vips-dev

0 commit comments

Comments
 (0)