Actually, the standard environment *does* allow (outbound) sockets, but 
with some restrictions (and not via the "net" package). Also, it's still in 
Beta.

The list of restrictions can be found here 
<https://cloud.google.com/appengine/docs/standard/go/sockets/>, and the API 
docs are here 
<https://cloud.google.com/appengine/docs/standard/go/sockets/reference>.



On Wednesday, October 3, 2018 at 1:40:33 AM UTC+2, kortschak wrote:
>
> I think that the project lead has decided to move to flex, so the issue 
> has become moot. 
>
> However, it would be nice for there to be some reasonably discoverable 
> documentation for these things. 
>
> The questions I would have had have been answered in what you wrote: we 
> want to have outbound sockets (via net.DialTCP, and in the first pass 
> access to syscall, but in the light of another answer from Ian, this 
> will likely go away). 
>
> thanks 
>
> On Mon, 2018-10-01 at 23:31 -0700, Stanley Iriele wrote: 
> > As mentioned elsewhere on this thread. Appengine flex allows you to 
> > use any  
> > golang package. Appengine standard is a different story. Appengine 
> > standard  
> > has come a long way, but generally speaking you can't use sockets, 
> > syscall,  
> > any package that imports syscall, and you can't make outbound http 
> > requests  
> > with anything other than appengine's urlfetch.  
> > 
> > Keep in mind that appengine standard is designed for stateless 
> > requests.  
> > Any clients you make need to be created per request. Is there a 
> > specific  
> > question that you have aside from general importability? 
> > 
> > On Monday, October 1, 2018 at 4:25:09 PM UTC-7, kortschak wrote: 
> > > 
> > > 
> > > I'd ask this at google-appengine-go, but there does not appear to 
> > > be  
> > > any real traffic to that group; numerous threads have only the 
> > > single  
> > > post that is the question being asked.  
> > > 
> > > The documentation for go appengine is woeful in terms of what is  
> > > allowed and what is not (previously I asked here and there 
> > > regarding  
> > > the requirements for passing `go vet -composites` without clear  
> > > response). Since I doubt I'll get a response there, I'll try my 
> > > luck  
> > > here:  
> > > 
> > > Is there documentation detailing which std packages are 
> > > allowed/banned  
> > > from appengine applications (obviously unsafe, but also net? 
> > > syscall?  
> > > etc?) Alternatively, can people here give a reasonably complete 
> > > list of  
> > > allowed/banned packages?  
> > > 
> > > thanks  
> > > Dan  
> > > 
> > > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to