Tienipia opened a new issue #794: binary_to_term/1 unknown_error : badarg at 
high rate request
URL: https://github.com/apache/couchdb/issues/794
 
 
   ## Story
   When I try to request too fast to server(like over 1000req/sec), sometimes 
server send me 500 Interner Server Error and server log under 'Error log'. It 
doesn't big issue to running server but it's little bit annoying, cause I need 
to re-request to server.
   
   ## Possible Solution
   According to Erlang official documents, using 
[binary_to_term/1](http://erlang.org/doc/man/erlang.html#binary_to_term-1) 
under untrusted source is not recommend. Officail recommend to use 
[binary_to_term/2](http://erlang.org/doc/man/erlang.html#binary_to_term-2) to 
prevent DoS attack or high load situation.
   
   ## Environment
   * Linux couchdb-local 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11 10:55:28 
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
   * v. 2.1.0-f72820910
   * 4 core / 4GB memory
   
   ## Error log
   `[error] 2017-09-06T08:28:43.948227Z [email protected] <0.22970.339> 
2e191baa82 req_err(2175836054) unknown_error : badarg
       [<<"erlang:binary_to_term/1">>,<<"fabric_view_changes:do_unpack_seqs/2 
L415">>,<<"fabric_view_changes:send_changes/6 
L145">>,<<"fabric_view_changes:go/5 L66">>,<<"chttpd:process_request/1 
L295">>,<<"chttpd:handle_request_int/1 L231">>,<<"mochiweb_http:headers/6 
L91">>,<<"proc_lib:init_p_do_apply/3 L247">>]`
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to