twistor / flysystem-stream-wrapper

Provides the ability to register Flysystem filesystems as stream wrappers.
MIT License
58 stars 19 forks source link

Warning: fwrite(): SSL: Broken pipe #7

Open JarJak opened 6 years ago

JarJak commented 6 years ago

I am connecting to Google Drive API with Flysystem and trying to stream files directly to it.

I'm trying to use your code but I'm getting:

Warning: fwrite(): SSL: Broken pipe
in vendor/twistor/flysystem-stream-wrapper/src/FlysystemStreamWrapper.php at line 661

this line is: https://github.com/twistor/flysystem-stream-wrapper/blob/master/src/FlysystemStreamWrapper.php#L661

Any ideas how to fix this error?

JarJak commented 6 years ago

After adding @ to fwrite I get:

Warning: fseek(): stream does not support seeking
in vendor/twistor/flysystem-stream-wrapper/src/FlysystemStreamWrapper.php at line 421

https://github.com/twistor/flysystem-stream-wrapper/blob/master/src/FlysystemStreamWrapper.php#L421

Lewiscowles1986 commented 4 years ago

What in your consuming code is trying to fseek? I think that is the problem to solve here.