Comments (5)
I looked at the unit test, and get the same error for my windows machine also.
And for convenience here it is on Appveyor: https://ci.appveyor.com/project/kellender/seattlelib-v2
..\GitHub\seattlelib_v2\RUNNABLE [Large-UDP-mdgs +2 ~0 -0 !]> python utf.py -f ut_repyv2api_udp_test_datagram_sizes.r2py
Testing module: repyv2api
Running: ut_repyv2api_udp_test_datagram_sizes.r2py [ FAIL ]
--------------------------------------------------------------------------------
Standard error :
..............................Produced..............................
Internal Error
---
Uncaught exception!
---
Following is a full traceback, and a user traceback.
The user traceback excludes non-user modules. The most recent call is displayed last.
Full debugging traceback:
"C:\Users\Ajay S\Documents\GitHub\seattlelib_v2\RUNNABLE\namespace.py", line 1207, in wrapped_function
"C:\Users\Ajay S\Documents\GitHub\seattlelib_v2\RUNNABLE\emulcomm.py", line 889, in sendmessage
User traceback:
Exception (with class 'socket.error'): [Errno 10040] A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself
---
..............................Expected..............................
None
--------------------------------------------------------------------------------
from repy_v2.
Thanks, and 👍 for doing this on AppVeyor!
Can you try and run the test outside of utf.py
, please? Just the plain
python repy.py restrictions.default ut_repyv2api_udp_test_datagram_sizes.r2py
so that we see what the size limit actually is.
from repy_v2.
sorry habit
C:\Users\Ajay S\Documents\GitHub\seattlelib_v2\RUNNABLE [Large-UDP-mdgs +2 ~0 -0 !]> python repy.py restrictions.default ut_repyv2api_udp_test_datagram_sizes.r2py
Message length 1000 works.
Message length 1600 works.
Message length 9216 works.
Message length 9217 works.
Message length 10000 works.
Message length 65507 works.
Message length 65508Internal Error
---
Uncaught exception!
---
Following is a full traceback, and a user traceback.
The user traceback excludes non-user modules. The most recent call is displayed last.
Full debugging traceback:
"C:\Users\Ajay S\Documents\GitHub\seattlelib_v2\RUNNABLE\namespace.py", line 1207, in wrapped_function
"C:\Users\Ajay S\Documents\GitHub\seattlelib_v2\RUNNABLE\emulcomm.py", line 889, in sendmessage
User traceback:
Exception (with class 'socket.error'): [Errno 10040] A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself
from repy_v2.
Checked on Mac OS X again: First, sudo
is required to modify net.inet.udp.maxdgram
. In other words, Seattle cannot (safely, sanely) do this.
Second, if I increase the value to 2**16-1 (or larger), the test outcomes are like what you see on Windows and Linux, i.e. the upper datagram length limit is 65507 bytes before the socket.error
arises.
from repy_v2.
@XuefengHuang and @vladimir-v-diaz will review this when they have time and let me know if anything seems lacking. (:
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
- 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.