Comments (3)
Author: vijay
In FutureRepyAPI sendmessage call no longer raises the LocalIPChanged exception.
When tried changing the IPaddress after UDPserver is up and listening,getmessage() will raise SocketWouldBlockError which is appropriate.
from repy_v2.
Author: justinc
Why is this a good exception to raise? How does the programmer know what happened? It seems really odd to raise this exception here....
from repy_v2.
Author: vijay
When an IP address of the system is changed a simple TCP and UDP server listening on the system will continue to listen on the old IP address (and port), and the operating system does not appear to notify the socket or the program that its IP address changed. I observed that listening on and then disconnecting the ethernet interface would raise a SocketWouldBlockError (Repyv2).
A possible solution to make the server program learn about the changed IP address would be to run another program or script that checks if the IP address changed and notifies the server program periodically about the change. Another solution would be to include the same piece of code in the server program itself. It appears that the Shims may have this capability.
UDP:
When an IP address of the system is changed a simple UDP server continue to be binded old IP,port and server will raise a SocketWouldBlockError.
from repy_v2.
Related Issues (20)
- `repy.py` option parser consumes arguments meant for the sandboxed program HOT 7
- Move logic to log to files from `repy.py` to `nmAPI.py`? HOT 2
- Clarify `repy.py` --logfile option help string HOT 5
- Should RepyV2 ever set `callfunc = "exit"`? HOT 2
- lack of netstat on modern versions of Linux
- Docs: Verify RepyV2 tutorial steps, code, etc. HOT 2
- Large UDP messages crash the sandbox HOT 5
- Promote warnings to errors? HOT 7
- `CheckNode/StrException`s in `safe.py` need better messages HOT 1
- Check for previously noted socket race condition
- Unmounting a live sandbox filesystem?
- Unit tests: Refactor ut_repyv2api_filecloseconcurrecy.py
- Unit tests: ut_repyv2api_commandlineargs.py leaves dangling Repy processes
- `SafeDict.update` needs `hasattr` HOT 3
- `namespace._copy` trips on `dict` values that are `type`s HOT 4
- `Exception` in a sandbox is not Python's `Exception` HOT 1
- `NameError` inside a virtual namespace causes Internal Error HOT 1
- Code safety error when Exception object has an `e.lineno` of `None`
- Fix issue references in comments HOT 2
- File object with input parameter long
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 repy_v2.