apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristiano Maciel da Silva <cristianomsi...@yahoo.com.br>
Subject Re: troubles while connecting thru apr sockets
Date Mon, 04 Aug 2003 12:10:30 GMT
please, check out my answers to your questions.

> ---------- Forwarded message ----------
> Date: Sat, 02 Aug 2003 10:37:56 -0400
> From: Jeff Trawick <trawick@attglobal.net>
> To: dev@apr.apache.org
> Subject: Re: troubles while connecting thru apr sockets
> 
> Cristiano Maciel da Silva wrote:
> 
> > when i try to read something just after a connect, the read operation
> > returns "end of file".
> 
> does it return APR_EOF immediately, or after a delay

apr_socket_recv returns APR_EOF immediately!!!

> > but, if i do connect, write anything to the socket, and then read it, it
> > works fine and i receive the expected output.
> 
> maybe this behavior is due to the way the peer works?  (i.e., it drops
> the connection if it doesn't receive any data)

no! i was connecting in telnet ports.
i mean, i was trying to read the telnet server reply using apr.
but it didnt work.

> by chance have you tried your client code anywhere besides Windows?

i am using linux (debian).

> do you ever call apr_recv() when apr_connect() is what actually failed?

every time i call apr_connect, i test its return value.
apr_connect always returns APR_SUCCESS.

> > is that a apr buggy?
> 
> unclear

again,

thanks!!

Cristiano Maciel da Silva.

_______________________________________________________________________
Conheça o novo Cadê? - Mais rápido, mais fácil e mais preciso.
Toda a web, 42 milhões de páginas brasileiras e nova busca por imagens!
http://www.cade.com.br

Mime
View raw message