Imported HTTP server state machine--at least one bug remaining