fix race condition during state loading

PyPy and Python2.7 might process the state attributes in different order.
This commit is contained in:
Thomas Kriechbaumer 2016-01-30 22:05:23 +01:00
parent 6d3b3994e2
commit f2097b47ce

View File

@ -11,9 +11,10 @@ from netlib.tcp import Address
from .. import version, stateobject
from .flow import Flow
from collections import OrderedDict
class MessageMixin(stateobject.StateObject):
_stateobject_attributes = dict(
_stateobject_attributes = OrderedDict(
http_version=bytes,
headers=Headers,
timestamp_start=float,