[Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-16 Thread Sean DiZazzo
Hi all! After I start a reactor connecting to a specific hostname and port, I do my thing and then call transport.write() to send the data to the peer. >From what I can tell, though, the hostname is resolved, and the data is written back to the ip address itself, instead of the hostname I started

Re: [Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-16 Thread Adi Roiban
On Fri, 17 Aug 2018 at 01:25, Sean DiZazzo wrote: > > Hi all! > > After I start a reactor connecting to a specific hostname and port, I do my > thing and then call transport.write() to send the data to the peer. > > From what I can tell, though, the hostname is resolved, and the data is > writte

Re: [Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-16 Thread Sean DiZazzo
Thanks for responding, Adi! I don't want each packet to go it's own way from Twisted. They all go to the same place from each instance of the server/protocol. They go to my custom protocol listening on another local port. It's just that I'm serving up several different ssl apps on the same ngin

Re: [Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-16 Thread Sean DiZazzo
I guess thats still kind of confusing without making something more clear... In my example, both myprotocol.example.com and test.example.com DNS records would point to the same IP address. One nginx instance then listens on that IP and serves up several ssl apps. They go through a "mapper" that u

Re: [Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-16 Thread Tom Most
Hi Sean, To summarize, you are writing a client application using Twisted which needs to talk with a service behind an Nginx reverse proxy. The reverse proxy requires use of TLS (a.k.a. SSL) and SNI to identify the appropriate backend service. If you were using HTTP, Twisted's twisted.web.client.A

Re: [Twisted-Python] Can transport.write() to hostname instead of IP address?

2018-08-16 Thread Sean DiZazzo
> > To summarize, you are writing a client application using Twisted which > needs to talk with a service behind an Nginx reverse proxy. The reverse > proxy requires use of TLS (a.k.a. SSL) and SNI to identify the appropriate > backend service. Why was that so difficult for me? lol. This is all

Re: [Twisted-Python] Fix link on trac for logging in

2018-08-16 Thread Craig Rodrigues
Is there someone with access to the twistedmatrix Trac source code who can fix the text at the place where it says *You are not logged in* aftr clicking on https://twistedmatrix.com/trac/newticket ? -- Craig On Thu, Jun 14, 2018 at 11:21 AM Craig Rodrigues wrote: > Hi, > > If a user clicks on t