[erlang-questions] Cowboy vs Misultin

Andy W. Song <>
Tue May 31 12:54:48 CEST 2011


Would you mind testing it using my C client? Search "->len" and give
it a value between 1500 and 2000, hopefully you'll see the result I
saw.

Regards
Andy

On 5/31/11, Roberto Ostinelli <> wrote:
>  2011/5/31 Andy W. Song <>
>
>> I guess Misultin's handle_data function has some problem if TCP packets
>> are
>> large, perhaps larger than ethernet MTU.
>>
>> If I use 1536+2 WebSocket packet size, I got follow error form Misultin(I
>> fill up char 'M' with my packet):
>>
>
> I have tested a packet size of 150K without any issues.
>
>
> 2011/5/31 Andy W. Song <>
>
>> 1400+2 WebSocket packet size is OK. Packet rate stays the same. CPU usage
>> goes up from 24% to 37%.
>>
>> CPU usage proportion to packet size is not a good sign. handle_data()
>> function will traverse the list to find 255, which is low efficient. Can
>> it
>> be improved?
>>
>
> I'm currently working on this. Latest misultin commit now handles the
> parsing of websocket data in binary instead of lists.
>
> r.
>

-- 
Sent from my mobile device

---------------------------------------------------------------
有志者,事竟成,破釜沉舟,百二秦关终属楚
苦心人,天不负,卧薪尝胆,三千越甲可吞吴



More information about the erlang-questions mailing list