You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Dario Cham <dc...@wings.fr> on 2014/03/31 23:29:42 UTC

TR: apr_size_t len : is there a max size (3555)?

Hello,

Please, I would like to know if there is a max size to initialize to apr_size_t len ?
Because my source code here below does not work (with apr_size_t len =4096).
I have made some tests with apr_size_t len =  3555 and it's working fine.
Thank you for your help.

 int tailleBuffer = 4096;
    char* buf = NULL;
    buf = malloc(tailleBuffer * sizeof(char));
    apr_size_t len = tailleBuffer;

    rv = apr_socket_send(skt, str, &len);  //failed

Regards.

Dario CHAM
Database System & Network Administrator
[logo]
25 rue des Mathurins
75008 PARIS
Tél. : 33 (0)1 42 80 41 44
Mob : 33 (0)6 11 43 45 86
email : dcham@wings.fr<ma...@wings.fr>


Re: TR: apr_size_t len : is there a max size (3555)?

Posted by Julian Foad <ju...@btopenworld.com>.
Dario Cham wrote:

> Please, I would like to know if there is a max size to initialize to apr_size_t len ?
> Because my source code here below does not work (with apr_size_t len =4096).
> I have made some tests with apr_size_t len =  3555 and it’s working fine.
> Thank you for your help.
>   
> int tailleBuffer = 4096;
>    char* buf = NULL;
>    buf = malloc(tailleBuffer * sizeof(char));
>    apr_size_t len = tailleBuffer;
> 
>    rv = apr_socket_send(skt, str, &len);  //failed


Hi Dario. I am sorry, but this mailing list is not a support forum.

If you are having trouble using Subversion, see

  http://subversion.apache.org/mailing-lists.html

For documentation of APR, see

  http://apr.apache.org/

For how to write a good bug report, see

  http://www.chiark.greenend.org.uk/~sgtatham/bugs.html


Regards,
- Julian