cocaine / cocaine-native-proxy Goto Github PK
View Code? Open in Web Editor NEWCocaine HTTP proxy
License: GNU Lesser General Public License v3.0
Cocaine HTTP proxy
License: GNU Lesser General Public License v3.0
I install cocaine-native-proxy with following config:
$ cat /etc/cocaine-native-proxy/default.conf
{
"endpoints": [
"0.0.0.0:8080"
],
"backlog": 2048,
"threads": 2,
"application": {
"locators": ["192.168.50.204:10053"], // <-- My gateway node
"service_pool": 5,
"reconnect_timeout": 180,
"request_timeout": 5
}
}
When I start flask
app from examples. It works. I can connect to it by Service('flask', host='192.168.50.204')
from python scripts.
But when I try to connect by HTTP - I got error 500:
vagrant@front:~$ curl -v http://192.168.50.204:8080/flask/http/read
* About to connect() to 192.168.50.204 port 8080 (#0)
* Trying 192.168.50.204... connected
> GET /flask/http/read HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.50.204:8080
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Content-Length: 0
< Connection: Keep-Alive
<
* Connection #0 to host 192.168.50.204 left intact
* Closing connection #0
... and got following from syslog on 192.168.50.204:
May 7 00:14:26 front cocaine[1054]: native-proxy: Internal error has occurred while processing event 'http' of application 'flask': Service manager no longer exists; code - 4.
Another two cents. When I use cocaine-tornado-proxy
by cocaine-tool proxy start
- all works fine.
Thank you in advance for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.