In http2, if the client ignores the server's settings frame, what should the server do? -
when there many connections, want reduce dynamic table size through settings_header_table_size in settings frame. if client ignores settings frame, , not send settings frame ack flag, server use default value (4096 octets)?if so, client can send many requests 4096 octets dynamic table after receiving server settings frame. may cause server's memory used much.how avoid case?
the client must apply settings promptness , send settings ack back, not optional. other behavior client non-compliant , in situations server can close connection. specific case client lingers long without acknowledging setting, server can close connection using goaway frame reason settings_timeout.
the other thing hpack dynamic table "global" http/2 connection. so, way attacker can abuse default size opening many different connections, not making many requests on same connection. in opinion, want limit number of connections can come single ip address, otherwise attackers won't need botnet perform ddos attack on server.
reducing size of dynamic table under 4096 bytes increase headers traffic , maybe counter-productive performance.
Comments
Post a Comment