-
Notifications
You must be signed in to change notification settings - Fork 75
Set header buffer size #73
Comments
I guess this is better to increase it to |
I don't know, @hhxsv5 use cookie encrypted, that depend of the encryption use. |
I think it's better to read stream until we get header "sec-websocket-key" or eof. other websocket projects: |
Hi @hhxsv5, the question was not how parse the header, but have enough data. In our case, it is It is not acceptable for us to dump entire stream content, because it's a stream... we only want here extract header part. There as two option :
|
Can we increase it to the maximum TCP frame size? 4096 is way too low for my needs. Thanks! |
@Hywan Ok I will do that, I also think it's for the best at this time. |
what ??? Not fixed yet... wasted hours looking for problems |
@zhusipu Finally, I built the WebSocket server with Swoole. |
Refer to issue #72
Today the library will take arbitrary first 2048 bytes of stream and send them to Http library.
Until we design better interface on
Hoa\Http
we can still make the buffer size configurable.Did we implement this parameter with Hoa\Zformat and array as argument of constructor ?
The text was updated successfully, but these errors were encountered: