GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
yes, you're right. I have not been completely satisfied with this behaviour for 
a long time. I have solved this now by altering the constructor of 
DuplexTcpClientPipelineFactory to not have a PeerInfo in the constructor, and 
then depending on whether a setClientInfo is done or not - we use the provided 
local host/port for client side binding. If no specific client side binding is 
provided, then any new available local port is bound. In both cases, we set the 
RpcClient's port to be the locally attached port, so your code above is 
respected still. 

Since the binding semantics have changed, i deliberately made it so the 
existing constructor of DuplexTcpClientPipelineFactory will break the code, so 
people have to choose explicitly how they want to handle the client side port 
binding. This change could make setting the "localAddress" on netty's Bootstrap 
not necessary anymore since their localAddress is not used anymore.

Fixed with 3.2.

Pls give feedback if it's ok for you.


Original comment by [email protected] on 15 Jan 2014 at 8:40

  • Changed state: Fixed

from protobuf-rpc-pro.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Thanks very much, it is good for me.

Original comment by [email protected] on 16 Jan 2014 at 7:15

from protobuf-rpc-pro.

Marax avatar Marax commented on July 18, 2024

Hi, since this change, we are having issue with connecting on Centos 7 and java8.

We are unable to connect only when we specify hostname to clientInfo and there is no record in /etc/hosts with .

If we don't specify the clientInfo to bootstrap, it connects, but on the server side client is stored with his IP and our current solution expects hostname.

I'll try to make minimal example and update here later.

from protobuf-rpc-pro.

pjklauser avatar pjklauser commented on July 18, 2024

Hi Roman, please create a new Issue and describe the problem you're having
here. I'm interested in checking if this is a potential java8 migration
issue or OS related.

thanks;Peter.


From: Roman Maล™รกk [mailto:[email protected]]
Sent: Donnerstag, 9. Juli 2015 10:59
To: pjklauser/protobuf-rpc-pro
Subject: Re: [protobuf-rpc-pro] client port not correct (#30)

Hi, since this change, we are having issue with connecting on Centos 7 and
java8.

We are unable to connect only when we specify hostname to clientInfo and
there is no record in /etc/hosts with .

If we don't specify the clientInfo to bootstrap, it connects, but on the
server side client is stored with his IP and our current solution expects
hostname.

I'll try to make minimal example and update here later.

Reply to this email directly or view
<#30 (comment)
261> it on GitHub.
<https://github.com/notifications/beacon/ABl1LX4awNi48TNi1IT45b-tqYSBQyoNks5
obi89gaJpZM4FVGWu.gif>


This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

from protobuf-rpc-pro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.