[erlang-questions] Cowboy vs Misultin

Roberto Ostinelli <>
Tue May 31 12:01:02 CEST 2011


 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110531/6c731f4e/attachment.html>


More information about the erlang-questions mailing list