Comments (4)
Hi @janpieterz, we've neglected this for over a year, sorry.
I would expect calling listen twice on the same port to throw an exception, just as if another app was already listening. So adding code to silently handle that case may cause callers to have the wrong expectation. Better to handle duplicate ports in the calling code.
Thank you for the offer though.
from halibut.
I just hit this issue today, different parts (and threads) of my server code attempt to call the "tentacle" which is in polling mode, sometimes it works, sometimes not, depending on whether those calls overlap. @janpieterz suggestion is a good one.. but I wonder if a single secureclient can handle multiple calls at the same time (I haven't dug into it yet).
from halibut.
In Octopus we use a single secure client for all polling tentacles. If for some reason you don't want to keep the listening port open of the life of the application, you should build a wrapper that keeps track of how many things are using it and open/close it appropriately.
from halibut.
That makes sense. I did already create a wrapper, but will have to rethink it to enable polling.
from halibut.
Related Issues (20)
- Unhandled exception logged
- [Feature] Routing HOT 1
- Strange issue when using WebSockets HOT 3
- Exceptions in the DataStream writer causes the receiver to block with 100% CPU load.
- PR #144 to add buffered stream appears to cause timeout issues.
- messageEnvelope is null HOT 1
- Support WebSockets on .NET Core HOT 1
- Exception with message "The archive entry was compressed using an unsupported compression method." is raised occasionally.
- [Question] TcpListener report progress
- HalibutRuntime extension/inheritance
- Update package at nuget? HOT 1
- Dependency Injection support? HOT 1
- Route is still present but underlying routetable isn't used HOT 5
- Any plans for Microsoft Generic Host support (HostBuilder etc) HOT 10
- External management of Trust HOT 2
- Strange performance issue HOT 1
- Notify when unauthorized client connects. HOT 1
- Listening Server leaks TCP connections
- Identifying a client HOT 5
- Halibut can not create TcpClient when IPv6 is disabled HOT 2
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 halibut.