when reflecting a sdblob, insert all the stream and intermediate blobs using a transaction #50
2 changed files with 11 additions and 2 deletions
|
@ -65,9 +65,14 @@ type availabilityResponse struct {
|
||||||
// Start starts the server listener to handle connections.
|
// Start starts the server listener to handle connections.
|
||||||
func (s *Server) Start(address string) error {
|
func (s *Server) Start(address string) error {
|
||||||
log.Println("HTTP3 peer listening on " + address)
|
log.Println("HTTP3 peer listening on " + address)
|
||||||
|
window500M := 500 * 1 << 20
|
||||||
|
|
||||||
quicConf := &quic.Config{
|
quicConf := &quic.Config{
|
||||||
HandshakeIdleTimeout: 4 * time.Second,
|
MaxStreamReceiveWindow: uint64(window500M),
|
||||||
MaxIdleTimeout: 20 * time.Second,
|
MaxConnectionReceiveWindow: uint64(window500M),
|
||||||
|
EnableDatagrams: true,
|
||||||
|
HandshakeIdleTimeout: 4 * time.Second,
|
||||||
|
MaxIdleTimeout: 20 * time.Second,
|
||||||
}
|
}
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
r.HandleFunc("/get/{hash}", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/get/{hash}", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -36,6 +36,10 @@ func NewStore(opts StoreOpts) *Store {
|
||||||
|
|
||||||
func (p *Store) getClient() (*Client, error) {
|
func (p *Store) getClient() (*Client, error) {
|
||||||
var qconf quic.Config
|
var qconf quic.Config
|
||||||
|
window500M := 500 * 1 << 20
|
||||||
|
qconf.MaxStreamReceiveWindow = uint64(window500M)
|
||||||
|
qconf.MaxConnectionReceiveWindow = uint64(window500M)
|
||||||
|
qconf.EnableDatagrams = true
|
||||||
qconf.HandshakeIdleTimeout = 4 * time.Second
|
qconf.HandshakeIdleTimeout = 4 * time.Second
|
||||||
qconf.MaxIdleTimeout = 20 * time.Second
|
qconf.MaxIdleTimeout = 20 * time.Second
|
||||||
pool, err := x509.SystemCertPool()
|
pool, err := x509.SystemCertPool()
|
||||||
|
|
Loading…
Reference in a new issue