diff --git a/server.go b/server.go
index <HASH>..<HASH> 100644
--- a/server.go
+++ b/server.go
@@ -2194,9 +2194,15 @@ func (s *Server) serveConn(c net.Conn) (err error) {
 					}
 					if reqConf.MaxRequestBodySize > 0 {
 						maxRequestBodySize = reqConf.MaxRequestBodySize
+					} else if s.MaxRequestBodySize > 0 {
+						maxRequestBodySize = s.MaxRequestBodySize
+					} else {
+						maxRequestBodySize = DefaultMaxRequestBodySize
 					}
 					if reqConf.WriteTimeout > 0 {
 						writeTimeout = reqConf.WriteTimeout
+					} else {
+						writeTimeout = s.WriteTimeout
 					}
 				}
 				// read body
Fix(server): reset maxRequestBodySize to the server's config (#<I>)

* fix(server): reset maxRequestBodySize to the server's config when HeaderReceived is set



* fix(server): reset writeTimeout