Comments (4)
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.
Thanks very much, it is good for me.
Original comment by [email protected]
on 16 Jan 2014 at 7:15
from protobuf-rpc-pro.
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.
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)
- async call's timeout not really work HOT 3
- Support Java 6 HOT 3
- RpcServiceRegistry cannot remove BlockingService HOT 1
- Protocol Buffers 2.6 HOT 7
- Disabling logging HOT 3
- Python rpc support HOT 1
- Upgrade to protobuf-java 3.0.0 ( after Netty ) HOT 3
- maven not building for project HOT 3
- protoc plugin that is being used HOT 4
- Using Websockets HOT 1
- CleanShutdownHandler to shutdown RpcClientConnectionWatchdog
- RpcClientChannel support "attributes" and isClosed method.
- CleanshutdownHandler leaves Thread prohibiting JVM shutdown HOT 1
- Allow RpcClientChannel attributes on client peerWith HOT 1
- CleanShutdownHandler leaves shutdown hook registered when shutdown explicitly HOT 1
- Is this project stable enough to use in production environment? HOT 2
- WatchdogThread is not renamed to a readable thread name HOT 2
- StackOverflowError DuplexTcpClientPipelineFactory.peerWith HOT 4
- C++ impl? HOT 1
- Compile Fail by Not Found AsyncThreadPoolCallExecutor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-rpc-pro.