[ace-users] Socket error 0 on send_n with ace Reactor (ACE_SOCK_Stream)

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Sun Jul 8 13:55:03 CDT 2007


Hi Ron,

To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form
(PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
very error-prone and slows down our responsiveness.  If you don't use
the PRF, therefore, it is less likely that someone from the core
ACE+TAO developer team will be able to answer your question.
Naturally, we encourage and appreciate other members of the ACE+TAO
user community who can respond to questions that they have the answers
to.

Thanks,

        Doug


>I am working with ACE reactor and ACE_SOCK_Stream. normally everything
>works fine.
>we have one scenario, in which we are working with 2 application, 2
>sockets each - one inside the server (sunos 10), and one outside of
>it.
>the first running application works fine, but the second one cannot
>send data through the socket. the return value is 0 (0 bytes sent),
>and errno=0. we tried to do several things:
>1. replace the ace send_n with a regular send. didn't work
>2. getsockopt(fd, SOL_SOCKET, SO_ERROR, (char *)&value, &val_len ) -
>to receive the error. got error 0 again....
>3. getsockopt(fd, SOL_SOCKET, SO_SNDBUF, (char *)&value, &val_len ) to
>receive the maximum size we can send. when the socket works fine, this
>works, but after the first send error we get errno 34 - "Result too
>large", which i haven't found documentation for anywhere...
>4. Resending the data in a loop, we still get error 0, and nothing is
>sent
>
>anyone has any IDEA?
>


-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list