It seems the list does not accept attachements. The code we used is bellow:

http://pastebin.com/0zVTx0sS



On Wed, Apr 30, 2014 at 2:50 PM, Acácio Centeno <[email protected]>wrote:

> Hello,
>
> Reading the docs at:
>
>
> https://trafficserver.readthedocs.org/en/latest/sdk/actions-guide.en.html?highlight=ts_event_net_connect
>
> It's stated that when creating a VConn, one should handle the event
> TS_EVENT_NET_CONNECT, that would be fired once the connection has been
> established.
>
> However, copying the page's example (attached) and trying to establish a
> connection to a port in which there is no listener, we still receive the
> event (and not TS_EVENT_NET_CONNECT_FAILED as we're expecting). The
> following link has the GDB session for the sample plugin:
>
> http://pastebin.com/57PkY8vv
>
> We're sure there's nothing listening on the port:
>
> [vagrant@localhost temp]$ telnet 127.0.0.1 9999
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
>
> We're using version TrafficServer 4.2.0 running on a CentOS 6.4 on a
> x86_64 VirtualBox VM, kernel 2.6.32-358.el6.x86_64.
>
> Should we be calling some other API function to learn if the connection
> has indeed been established? Are we getting the meaning of the event wrong?
>
>
> Thanks in advance,
> --
> Acácio Centeno
>
> Porto Alegre, Brasil + 55 51 3012 3005
> Miami, USA + 1 305 704 8816
>
> Quaisquer informações contidas neste e-mail e anexos podem ser
> confidenciais e privilegiadas, protegidas por sigilo legal. Qualquer forma
> de utilização deste documento depende de autorização do emissor, sujeito as
> penalidades cabíveis.
>
> Any information in this e-mail and attachments may be confidential and
> privileged, protected by legal confidentiality. The use of this document
> require authorization by the issuer, subject to penalties.
>



-- 
Acácio Centeno

Porto Alegre, Brasil + 55 51 3012 3005
Miami, USA + 1 305 704 8816

Quaisquer informações contidas neste e-mail e anexos podem ser
confidenciais e privilegiadas, protegidas por sigilo legal. Qualquer forma
de utilização deste documento depende de autorização do emissor, sujeito as
penalidades cabíveis.

Any information in this e-mail and attachments may be confidential and
privileged, protected by legal confidentiality. The use of this document
require authorization by the issuer, subject to penalties.

Reply via email to