You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body(Req, Opts) -> {ok, Data, Req2} | {more, Data, Req2}
...
It will use a timeout of 15s per chunk.
When I deploy local project, and use local browser, the uploaded file with 2M size would uploaded in 15s, all the things worked well.
But when I deploy remote project the error report happened.
Though I change some code in simple_bridge:
%% cowboy_simple_bridge.elrequest_body(ReqKey) ->
{RequestCache, Req} =get_key(ReqKey),
{Body, NewReq} =caseRequestCache#request_cache.bodyofnot_loaded ->
%% We start with 2MB here, as headers and form fields will almost%% certainly be in the first 2mb of a request-casecowboy_req:body(Req, [{length, 2000000}]) of+casecowboy_req:body(Req, [{length, 2000000}, {read_timeout, 120000}]) of
...
It's bug in simple_bridge.
my solution can worked well now, but not pretty.
Perhaps it's a good idea set the timeout in simple_bridge.config.
The text was updated successfully, but these errors were encountered:
when I use upload_element in nitrogen, there is a error report for simple_bridge as follow:
I read cowboy document and find this:
When I deploy local project, and use local browser, the uploaded file with 2M size would uploaded in 15s, all the things worked well.
But when I deploy remote project the error report happened.
Though I change some code in simple_bridge:
It's bug in simple_bridge.
my solution can worked well now, but not pretty.
Perhaps it's a good idea set the timeout in simple_bridge.config.
The text was updated successfully, but these errors were encountered: