frame 流重新设计 - noradle/noradle-dispatcher GitHub Wiki

现状

  • management frame slot_id=0, single frame without head/end frame
  • client/oracle request/response frame begin with head frame and end with end frame

but in the future, exception for NORADLE format, raw http, FCGI, SCGI may also come in, wrapped in frames.

oracle gateway.listen should known which type of protocol clients is sending frames.

so it should define a frame type before head frame or use flags in frame header to tell oracle to distinguish.

  • flag=0 stand for noradle
  • flag=1 stand for raw http
  • flag=2 stand for scgi
  • flag=3 stand for fcgi