Skip to content

Transferring large files to an SSL secured site fails #6

@andreaswolf

Description

@andreaswolf

When trying to sync a large file (> ~ 70 kB) from my local machine to an HTTPS site, the upload fails with the following message being repeated again and again:

SSL operation failed with code 1. OpenSSL Error messages: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry in ...

The problem seems to come from the stream not being ready again. If I remove the call to stream_set_blocking(), even several megabytes can be transferred without any hassle.

Another alternative might be to wait for the stream to become ready again with stream_select().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions