POSTing large files over SSL fails

It seems that libwww hangs when POSTing large files over SSL. The library cannot
handle correctly OpenSSL's SSL_ERROR_WANT_WRITE return code when writing data.

This can be fixed by changing HTSSLWriter_write (in HTSSLWrite.c) as follows:

Change lines:

        case SSL_ERROR_WANT_WRITE:
            HTHost_register(host, net, HTEvent_WRITE);
            me->offset = wrtp - buf;
            HTTRACE(STREAM_TRACE, "HTSSLWriter. WOULD BLOCK %d (offset %d)\n" _
soc _ me->offset);
            return HT_WOULD_BLOCK;

To:

        case SSL_ERROR_WANT_WRITE:
            break;

I don't know if this breaks other things or if this is the best solution, but at
least it seems to work..

Your,

Ville Alkkiomäki

Received on Friday, 20 October 2000 06:51:17 UTC