2020-12-31 06:05

Help deploying to App Engine

Hi Pierrre,

I would like some help deploying a golang image server using your package to the Google App Engine.

Problem is, App Engine rejects the use of sockets. I think in order to rectify the issue, "google.golang.org/appengine/socket" package is necessary.

I'm trying to follow this github issue to fix the issue: https://github.com/go-sql-driver/mysql/issues/457


dial := func(addr string) (net.Conn, error) {
        return socket.Dial(appengine.NewContext(r), "tcp", addr)

mysql.RegisterDial("external", dial)

However, I'm not sure how I could get access to the http request from where the Redis socket.Dial() is called.


  • 点赞
  • 回答
  • 收藏
  • 复制链接分享