From ef295b67946738fda504660d8b8e98bd8d0fd4f5 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 5 Jul 2020 15:30:30 -0700 Subject: [PATCH] Cleanup + poll connection for disconnected state. For #34 --- core/rtmp/handler.go | 188 ------------------------------------------- core/rtmp/rtmp.go | 74 ++++++++++++++--- go.mod | 3 - go.sum | 20 ----- 4 files changed, 63 insertions(+), 222 deletions(-) delete mode 100644 core/rtmp/handler.go diff --git a/core/rtmp/handler.go b/core/rtmp/handler.go deleted file mode 100644 index 035ba44e0..000000000 --- a/core/rtmp/handler.go +++ /dev/null @@ -1,188 +0,0 @@ -package rtmp - -import ( - "bytes" - "errors" - "io" - "os" - "syscall" - - log "github.com/sirupsen/logrus" - "github.com/yutopp/go-flv" - flvtag "github.com/yutopp/go-flv/tag" - yutmp "github.com/yutopp/go-rtmp" - rtmpmsg "github.com/yutopp/go-rtmp/message" - - "github.com/gabek/owncast/config" - "github.com/gabek/owncast/core" - "github.com/gabek/owncast/core/ffmpeg" - "github.com/gabek/owncast/utils" -) - -var _ yutmp.Handler = (*Handler)(nil) - -// Handler An RTMP connection handler -type Handler struct { - yutmp.DefaultHandler - flvFile *os.File - flvEnc *flv.Encoder -} - -//OnServe handles the "OnServe" of the rtmp service -func (h *Handler) OnServe(conn *yutmp.Conn) { -} - -//OnConnect handles the "OnConnect" of the rtmp service -func (h *Handler) OnConnect(timestamp uint32, cmd *rtmpmsg.NetConnectionConnect) error { - // log.Printf("OnConnect: %#v", cmd) - - return nil -} - -//OnCreateStream handles the "OnCreateStream" of the rtmp service -func (h *Handler) OnCreateStream(timestamp uint32, cmd *rtmpmsg.NetConnectionCreateStream) error { - // log.Printf("OnCreateStream: %#v", cmd) - - return nil -} - -//OnPublish handles the "OnPublish" of the rtmp service -func (h *Handler) OnPublish(timestamp uint32, cmd *rtmpmsg.NetStreamPublish) error { - // log.Printf("OnPublish: %#v", cmd) - log.Trace("Incoming stream connected.") - - if cmd.PublishingName != config.Config.VideoSettings.StreamingKey { - return errors.New("invalid streaming key; rejecting incoming stream") - } - - if _isConnected { - return errors.New("stream already running; can not overtake an existing stream") - } - - // Record streams as FLV - p := utils.GetTemporaryPipePath() - syscall.Mkfifo(p, 0666) - - f, err := os.OpenFile(p, os.O_RDWR, os.ModeNamedPipe) - if err != nil { - return err - } - h.flvFile = f - - enc, err := flv.NewEncoder(f, flv.FlagsAudio|flv.FlagsVideo) - if err != nil { - _ = f.Close() - return err - } - h.flvEnc = enc - - transcoder := ffmpeg.NewTranscoder() - go transcoder.Start() - - _isConnected = true - core.SetStreamAsConnected() - - return nil -} - -//OnSetDataFrame handles the setting of the data frame -func (h *Handler) OnSetDataFrame(timestamp uint32, data *rtmpmsg.NetStreamSetDataFrame) error { - r := bytes.NewReader(data.Payload) - - var script flvtag.ScriptData - if err := flvtag.DecodeScriptData(r, &script); err != nil { - log.Printf("Failed to decode script data: Err = %+v", err) - return nil // ignore - } - - // log.Printf("SetDataFrame: Script = %#v", script) - - if err := h.flvEnc.Encode(&flvtag.FlvTag{ - TagType: flvtag.TagTypeScriptData, - Timestamp: timestamp, - Data: &script, - }); err != nil { - log.Printf("Failed to write script data: Err = %+v", err) - } - - return nil -} - -//OnAudio handles when we get audio from the rtmp service -func (h *Handler) OnAudio(timestamp uint32, payload io.Reader) error { - var audio flvtag.AudioData - if err := flvtag.DecodeAudioData(payload, &audio); err != nil { - return err - } - - flvBody := new(bytes.Buffer) - if _, err := io.Copy(flvBody, audio.Data); err != nil { - return err - } - audio.Data = flvBody - - // log.Printf("FLV Audio Data: Timestamp = %d, SoundFormat = %+v, SoundRate = %+v, SoundSize = %+v, SoundType = %+v, AACPacketType = %+v, Data length = %+v", - // timestamp, - // audio.SoundFormat, - // audio.SoundRate, - // audio.SoundSize, - // audio.SoundType, - // audio.AACPacketType, - // len(flvBody.Bytes()), - // ) - - if err := h.flvEnc.Encode(&flvtag.FlvTag{ - TagType: flvtag.TagTypeAudio, - Timestamp: timestamp, - Data: &audio, - }); err != nil { - log.Printf("Failed to write audio: Err = %+v", err) - } - - return nil -} - -//OnVideo handles when we video from the rtmp service -func (h *Handler) OnVideo(timestamp uint32, payload io.Reader) error { - var video flvtag.VideoData - if err := flvtag.DecodeVideoData(payload, &video); err != nil { - return err - } - - flvBody := new(bytes.Buffer) - if _, err := io.Copy(flvBody, video.Data); err != nil { - return err - } - video.Data = flvBody - - // log.Printf("FLV Video Data: Timestamp = %d, FrameType = %+v, CodecID = %+v, AVCPacketType = %+v, CT = %+v, Data length = %+v", - // timestamp, - // video.FrameType, - // video.CodecID, - // video.AVCPacketType, - // video.CompositionTime, - // len(flvBody.Bytes()), - // ) - - if err := h.flvEnc.Encode(&flvtag.FlvTag{ - TagType: flvtag.TagTypeVideo, - Timestamp: timestamp, - Data: &video, - }); err != nil { - log.Printf("Failed to write video: Err = %+v", err) - } - - return nil -} - -//OnClose handles the closing of the rtmp connection -func (h *Handler) OnClose() { - log.Printf("OnClose of the rtmp service") - - if h.flvFile != nil { - _ = h.flvFile.Close() - } - - _isConnected = false - core.SetStreamAsDisconnected() -} diff --git a/core/rtmp/rtmp.go b/core/rtmp/rtmp.go index eaade443a..f189909b1 100644 --- a/core/rtmp/rtmp.go +++ b/core/rtmp/rtmp.go @@ -1,12 +1,15 @@ package rtmp import ( + "io" + "net" "os" "strings" "syscall" + "time" - "github.com/Seize/joy4/av/avutil" - "github.com/Seize/joy4/format/ts" + "github.com/nareix/joy4/av/avutil" + "github.com/nareix/joy4/format/ts" log "github.com/sirupsen/logrus" "github.com/gabek/owncast/config" @@ -14,8 +17,8 @@ import ( "github.com/gabek/owncast/core/ffmpeg" "github.com/gabek/owncast/utils" - "github.com/Seize/joy4/format" - "github.com/Seize/joy4/format/rtmp" + "github.com/nareix/joy4/format" + "github.com/nareix/joy4/format/rtmp" ) var ( @@ -29,7 +32,6 @@ func init() { //Start starts the rtmp service, listening on port 1935 func Start() { - port := 1935 server := &rtmp.Server{} @@ -43,12 +45,11 @@ func Start() { } func handlePublish(conn *rtmp.Conn) { - // Commented out temporarily because I have no way to set _isConnected to false after RTMP is closed. - // if _isConnected { - // log.Errorln("stream already running; can not overtake an existing stream") - // conn.Close() - // return - // } + if _isConnected { + log.Errorln("stream already running; can not overtake an existing stream") + conn.Close() + return + } streamingKeyComponents := strings.Split(conn.URL.Path, "/") streamingKey := streamingKeyComponents[len(streamingKeyComponents)-1] @@ -58,6 +59,8 @@ func handlePublish(conn *rtmp.Conn) { return } + log.Println("Incoming RTMP connected.") + pipePath := utils.GetTemporaryPipePath() syscall.Mkfifo(pipePath, 0666) transcoder := ffmpeg.NewTranscoder() @@ -71,10 +74,59 @@ func handlePublish(conn *rtmp.Conn) { panic(err) } + // Is this too fast? Are there downsides to peeking + // into the stream so frequently? + ticker := time.NewTicker(500 * time.Millisecond) + go func() { + for { + select { + case <-ticker.C: + error := connCheck(conn.NetConn()) + if error == io.EOF { + handleDisconnect(conn) + } + } + } + }() muxer := ts.NewMuxer(f) avutil.CopyFile(muxer, conn) } +// Proactively check if the RTMP connection is still active or not. +// Taken from https://stackoverflow.com/a/58664631. +func connCheck(conn net.Conn) error { + var sysErr error = nil + rc, err := conn.(syscall.Conn).SyscallConn() + if err != nil { + return err + } + err = rc.Read(func(fd uintptr) bool { + var buf []byte = []byte{0} + n, _, err := syscall.Recvfrom(int(fd), buf, syscall.MSG_PEEK|syscall.MSG_DONTWAIT) + switch { + case n == 0 && err == nil: + sysErr = io.EOF + case err == syscall.EAGAIN || err == syscall.EWOULDBLOCK: + sysErr = nil + default: + sysErr = err + } + return true + }) + if err != nil { + return err + } + + return sysErr +} + +func handleDisconnect(conn *rtmp.Conn) { + log.Println("RTMP disconnected.") + conn.Close() + _isConnected = false + core.SetStreamAsDisconnected() +} + //IsConnected gets whether there is an rtmp connection or not //this is only a getter since it is controlled by the rtmp handler func IsConnected() bool { diff --git a/go.mod b/go.mod index e515f7f05..cb34d15e5 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/gabek/owncast go 1.14 require ( - github.com/Seize/joy4 v0.0.8 github.com/aws/aws-sdk-go v1.32.1 github.com/ipfs/go-ipfs v0.5.1 github.com/ipfs/go-ipfs-config v0.5.3 @@ -17,8 +16,6 @@ require ( github.com/radovskyb/watcher v1.0.7 github.com/sirupsen/logrus v1.6.0 github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf - github.com/yutopp/go-flv v0.2.0 - github.com/yutopp/go-rtmp v0.0.0-20191212152852-4e41609a99bb golang.org/x/net v0.0.0-20200602114024-627f9648deb9 gopkg.in/yaml.v2 v2.3.0 ) diff --git a/go.sum b/go.sum index 1d372c74f..12124bbcd 100644 --- a/go.sum +++ b/go.sum @@ -15,13 +15,9 @@ github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 h1:cTp8I5+VIo github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/Danile71/joy4 v0.0.0-20200617111000-4c92a5f18a24 h1:7y5l9RK694Unz8neWlz9bNueMRrr054h/u5ru8NgwQo= -github.com/Danile71/joy4 v0.0.0-20200617111000-4c92a5f18a24/go.mod h1:ZRwYqit2cuEv7IyWNcYVezd/DM28D6W6hUWN5z4vkn0= github.com/Kubuxu/go-os-helper v0.0.1/go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/Seize/joy4 v0.0.8 h1:wG7awuz+v4LIyJlPiuXYt2fcH4dEj2MC5Ib4fPd05NI= -github.com/Seize/joy4 v0.0.8/go.mod h1:l2OVEo5xnZOOkIiqh3Jqku/pTBOGp/tTYTJue78zpO0= github.com/Stebalien/go-bitfield v0.0.0-20180330043415-076a62f9ce6e/go.mod h1:3oM7gXIttpYDAJXpVNnSCiUMYBLIZ6cb1t+Ip982MRo= github.com/Stebalien/go-bitfield v0.0.1 h1:X3kbSSPUaJK60wV2hjOPZwmpljr6VGCqdq4cBLhbQBo= github.com/Stebalien/go-bitfield v0.0.1/go.mod h1:GNjFpasyUVkHMsfEOk8EFLJ9syQ6SI+XWrX9Wf2XH0s= @@ -115,15 +111,11 @@ github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fd/go-nat v1.0.0/go.mod h1:BTBu/CKvMmOMUPkKVef1pngt2WFH/lg7E6yQnulfp6E= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/fortytw2/leaktest v1.2.0 h1:cj6GCiwJDH7l3tMHLjZDo0QqPtrXJiWSI9JgpeQKw+Q= -github.com/fortytw2/leaktest v1.2.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/gabek/joy4 v0.0.8 h1:OlG1UFDSRRMCbbhtmSvyb/URFGr8OxI1/kkDG2eyHGI= -github.com/gabek/joy4 v0.0.8/go.mod h1:44yzEqcL98n2ossWubXBgDmbrE/TC3WqQDYUUC9Xz0c= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-bindata/go-bindata/v3 v3.1.3 h1:F0nVttLC3ws0ojc7p60veTurcOm//D4QBODNM7EGrCI= @@ -191,8 +183,6 @@ github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmv github.com/gxed/pubsub v0.0.0-20180201040156-26ebdf44f824/go.mod h1:OiEWyHgK+CWrmOlVquHaIK1vhpUJydC9m0Je6mhaiNE= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.0 h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI= github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -427,7 +417,6 @@ github.com/kisielk/errcheck v1.2.0 h1:reN85Pxc5larApoH1keMBiu2GWtPqXQ1nc9gx+jOU+ github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/konsorten/go-windows-terminal-sequences v0.0.0-20180402223658-b729f2633dfe/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -894,7 +883,6 @@ github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod h1:TCR1l github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4= github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw= -github.com/sirupsen/logrus v1.1.1/go.mod h1:zrgwTnHtNr00buQ1vSptGe8m1f/BbgsPukg8qsT7A+A= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I= @@ -976,12 +964,6 @@ github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee/go.mod h1: github.com/whyrusleeping/yamux v1.1.5/go.mod h1:E8LnQQ8HKx5KD29HZFUwM1PxCOdPRzGwur1mcYhXcD8= github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yutopp/go-amf0 v0.0.0-20180803120851-48851794bb1f h1:VIlyzrDymNB/eD+uJ2vdhgxsY1OGKpVSvVPV3oy97cI= -github.com/yutopp/go-amf0 v0.0.0-20180803120851-48851794bb1f/go.mod h1:miopb3mUO8ynCPmYD04SZ0JCMFsBt0eOdAuQ6HHHQ6Q= -github.com/yutopp/go-flv v0.2.0 h1:f/8z2SKymXJH78666m7Irpq+I1PsrGptBIR3RXGEw/A= -github.com/yutopp/go-flv v0.2.0/go.mod h1:xe1MPrWcfQfYeBT7E5WAF0zvKUyf1hmSpesDjBoUV4E= -github.com/yutopp/go-rtmp v0.0.0-20191212152852-4e41609a99bb h1:t72gtez9q8AP1GZRWCND4rrV1FzHqiRJKZpF3d4fJ6I= -github.com/yutopp/go-rtmp v0.0.0-20191212152852-4e41609a99bb/go.mod h1:OylyjsXKyC52jWJkDgs75y4EzsYE3kA9q+OhB7upR9M= go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -1016,7 +998,6 @@ go4.org v0.0.0-20200104003542-c7e774b10ea0/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1 golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1089,7 +1070,6 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181011152604-fa43e7bc11ba/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=