This commit is contained in:
parent
73e4a9deb3
commit
bb7e73643e
@ -1,7 +1,6 @@
|
|||||||
package framework
|
package framework
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.pcux.cn/xuans/Smail/utils/runtimepath"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"crypto/subtle"
|
"crypto/subtle"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
@ -10,6 +9,7 @@ import (
|
|||||||
"git.pcux.cn/xuans/Smail/dto/parsemail"
|
"git.pcux.cn/xuans/Smail/dto/parsemail"
|
||||||
"git.pcux.cn/xuans/Smail/models"
|
"git.pcux.cn/xuans/Smail/models"
|
||||||
"git.pcux.cn/xuans/Smail/utils/context"
|
"git.pcux.cn/xuans/Smail/utils/context"
|
||||||
|
"git.pcux.cn/xuans/Smail/utils/runtimepath"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
@ -397,9 +397,10 @@ func (p *Plugin) Run() error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
server := http.Server{
|
server := http.Server{
|
||||||
ReadTimeout: 5 * time.Second,
|
ReadTimeout: 5 * time.Second,
|
||||||
WriteTimeout: 5 * time.Second,
|
ReadHeaderTimeout: 5 * time.Second,
|
||||||
Handler: p.authenticatedHandler(p.limitedHandler(mux)),
|
WriteTimeout: 35 * time.Second,
|
||||||
|
Handler: p.authenticatedHandler(p.limitedHandler(mux)),
|
||||||
}
|
}
|
||||||
|
|
||||||
unixListener, err := pluginListener(os.Args[1])
|
unixListener, err := pluginListener(os.Args[1])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user