Skip to content
Snippets Groups Projects
  • Matt Jordan's avatar
    367d4903
    res_http_websocket: Increase the buffer size for non-LOW_MEMORY systems · 367d4903
    Matt Jordan authored
    Not surprisingly, using Respoke (and possibly other systems) it is
    possible to blow past the 16k limit for a WebSocket packet size. This
    patch bumps it up to 32k, which, at least for Respoke, is sufficient.
    For now.
    
    Because 32k is laughable on a LOW_MEMORY system (as is 16k, for that
    matter), this patch adds a LOW_MEMORY directive that sets the buffer to
    8k for systems who have asked for their reduced memory availability to
    be considered.
    
    Change-Id: Id235902537091b58608196844dc4b045e383cd2e
    367d4903
    History
    res_http_websocket: Increase the buffer size for non-LOW_MEMORY systems
    Matt Jordan authored
    Not surprisingly, using Respoke (and possibly other systems) it is
    possible to blow past the 16k limit for a WebSocket packet size. This
    patch bumps it up to 32k, which, at least for Respoke, is sufficient.
    For now.
    
    Because 32k is laughable on a LOW_MEMORY system (as is 16k, for that
    matter), this patch adds a LOW_MEMORY directive that sets the buffer to
    8k for systems who have asked for their reduced memory availability to
    be considered.
    
    Change-Id: Id235902537091b58608196844dc4b045e383cd2e