Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine TCP/IP connection

I would like to set up a couple TCP/IP connections in GAE using Go. As I've searched it is impossible to get a static IP from the app engine, but can't find much data on other limitations.

Is it possible to establish a TCP/IP connection in GAE, and if so, how long can it be used before it has to be re-established?

like image 575
ThePiachu Avatar asked Dec 12 '22 08:12

ThePiachu


2 Answers

It is clearly mentioned here that you may not open a socket from within their sandboxed environment. Now HTTP is also based on TCP/IP, and you may "fetch" content using URLs (in Python it's urllib and urllib2, don't know much about Go). But raw SOCK_STREAM connections? NO.

regards,

Yati Sagade

like image 164
yati sagade Avatar answered Dec 29 '22 22:12

yati sagade


The situation has changed and as of July 2013 there is an experimental Socket service available for Java and Python. It is enabled only for paid accounts, you can only create outbound connections, and there are few other limitations. Also, the docs says that the API is not stable and may be subject to changes.

As of December 2013 there is the experimental Socket service available for Go as well. The conditions in the relevant doc page are similar to the ones for Java and Python.

like image 36
2 revs Avatar answered Dec 29 '22 22:12

2 revs