[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnutls] Large Data Support through Gnu TLS
From: |
Pavan Puri |
Subject: |
Re: [Help-gnutls] Large Data Support through Gnu TLS |
Date: |
Mon, 12 Nov 2007 11:13:38 +0530 |
Hi Florian,
Thanks for the quick reply.
Is there some kind of configurable option like blocking send in tls
using which we can configure tls session to send whole data in loop
(and return failure on permanent error).
"If the socket does not have enough buffer space available to
hold the message being sent, send() blocks, unless the
socket has been placed in non-blocking I/O mode."
Best Regards
Pavan
On 11/8/07, Florian Weimer <address@hidden> wrote:
> * Pavan Puri:
>
> > We are trying to send large (upto 2 MB) through gnu TLS using the API
> > gnutls_record_send().
> > This API is failing to send data over 16384 bytes.
>
> You need to check the return value and keep sending the remaining part
> of the buffer in a loop, just like you would do when you use write()
> or send() on a TCP socket.
>
> --
> Florian Weimer <address@hidden>
> BFK edv-consulting GmbH http://www.bfk.de/
> Kriegsstraße 100 tel: +49-721-96201-1
> D-76133 Karlsruhe fax: +49-721-96201-99
>