How should I host Go on VPS Windows Server

I use Go to run as a web application, my code works fine but after 2 or 3 hours on CMD I receive this error and server was stopped

OS: Windows Server 2012 R2 Standard

C:\Users\Administrator\Desktop\Go\vt>go run main.go
Service is running
2020/04/06 23:17:59 write tcp (my ip server here):8080->(strange ip here): wsasend: An
established connection was aborted by the software in your host machine.
exit status 1

Here my code :

https://play.golang.org/p/ctBPn1HyriC

my index.html:

https://jsfiddle.net/mqfj27z1/

Please use the following line (as first line) to let the logger put the line that generate the error.

log.SetFlags(log.LstdFlags | log.Lshortfile)

There is an end tag missing: </a>
https://jsfiddle.net/f2kdtrs8/

http errors can shut down.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.