Bulk load on a large file return error 56 from curl

Hi all,

I'm trying to perform a bulk load on elasticsearch and received the
following error code (no response)

curl -s -XPOST localhost:9200/_bulk --data-binary @bulk_load_file.txt
Fatal error: local() encountered an error (return code 56) while executing
'curl -s -XPOST localhost:9200/_bulk --data-binary @bulk_load_file.txt

The file is as big as 300MB. on the same file I performed a head and tail
and take only a part of it to bulk load, and it works just fine.
what could be the problem? is there any recommended setting change when
bulk loading large files?

Thank you.

Yuhan

--
The information contained in this e-mail is for the exclusive use of the
intended recipient(s) and may be confidential, proprietary, and/or legally
privileged. Inadvertent disclosure of this message does not constitute a
waiver of any privilege. If you receive this message in error, please do
not directly or indirectly print, copy, retransmit, disseminate, or
otherwise use the information. In addition, please delete this e-mail and
all copies and notify the sender.

--

resolved by setting http.max_content_length setting = 500mb in the
elasticsearch.yml file.

Thank you.

Yuhan

--
The information contained in this e-mail is for the exclusive use of the
intended recipient(s) and may be confidential, proprietary, and/or legally
privileged. Inadvertent disclosure of this message does not constitute a
waiver of any privilege. If you receive this message in error, please do
not directly or indirectly print, copy, retransmit, disseminate, or
otherwise use the information. In addition, please delete this e-mail and
all copies and notify the sender.

--