Comments (6)
I'm not sure mruby-httprequest
support mruby 2.1, because its last update is in 3 years ago...
Could you try to downgrade script_core
to 0.0.6
to see what happend? maybe it works
from script_core.
Ok I did some research, don't know why mruby-io
can't compile, I'm not experienced on C, called friend for help
from script_core.
OK, finally let it work, because LLVM-macOS should include stdio.h
by default, but GCC not, so adding #include <stdio.h>
to mruby/mrbgems/mruby-io/src/file.c
will work.
I'll send a PR to mruby, don't know this is the right way.
You need put these in to your gembox:
conf.gem core: "mruby-sprintf"
conf.gem mgem: "mruby-httprequest"
and you have to give a long timeout throttle because 1 second is too short for network IO, and keep in mind that mruby is running syncronizingly which means it will blocking your program until return or timeout.
Thank you give this issue that let me know IO works in the sandbox.
from script_core.
Unforunatly ESS opened MRB_DISABLE_STDIO
flag made mruby-io
compiling failed.
Although we can give an option to remove that, but that would lead the sandbox vulnerble.
what do you think?
from script_core.
Was just about to try this out. It would be nice to have this option, but indeed vulnerable sandboxes make no sense. Let's not. I'll think of another way! Shall I close this ticket?
Really enjoy using this gem!
from script_core.
Was just about to try this out. It would be nice to have this option, but indeed vulnerable sandboxes make no sense. Let's not. I'll think of another way! Shall I close this ticket?
Really enjoy using this gem!
Thank you for reply! I close the issue
from script_core.
Related Issues (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 script_core.