現在、Cakephp3にて開発を行っております。
APIを使用して、データの更新を行う処理にて、
データをXML形式でPOSTしているのですが、以下のエラーが発生してしまい、処理が進まない状態にあります。
ソースコード
protected function _open($url) { set_error_handler(function ($code, $message) { $this->_connectionErrors[] = $message; }); $this->_stream = fopen($url, 'rb', false, $this->_context); restore_error_handler(); if (!$this->_stream || !empty($this->_connectionErrors)) { throw new Exception(implode("\n", $this->_connectionErrors)); } }
エラー内容:
fopen(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable
※POSTデータを少なくすると、上手くいくことは確認しました。
送信データを少なくするしか方法はないのでしょうか。
どなたか解決策をご存知の方がいらっしゃいましたら、お教え願います。
環境は、
php 7.0.15
nginx
です。