[noPoll] [Amarisoft] Patch proposal

Francis Brosnan Blázquez francis.brosnan en aspl.es
Jue Feb 16 10:05:18 CET 2017


Hello Emmanuel, Rahul,

Thanks for the info. I'll take a look into it and the patch,

Best Regards,


> Hi,
> 
> 
> I confirm that what Rahul faced is exactly the same as I face.
> The easiest way to reproduce is to send "big" amount of data (> 32K).
> In such situation, the TCP window of the socket is full and a fragment
> will be received after multiple call to recv on the socket.
> This leads to multiple call of nopoll_conn_get_msg and in particular,
> for the last fragment where is_final is set for each call of
> nopoll_conn_get_msg
> 
> I don't see any problem that nopoll_conn_get_msg does not match exact
> web socket level fragmentation.
> The only problem is to be sure to detect end of transfer, which is not
> possible in this situation
> 
> In the code, has_fin and is_fragment are reflecting the web socket
> state but not no_poll abstraction. This is the case for fragment (cf
> nopoll_msg_is_fragment), may be the case for fin, what explains my
> (very) simple patch.
> 
> 
> NB: you may also reproduce the issue with a "slow" connection
> I often use nodejs + websocket plugin to test my code
> 
> 
> 
> Best regards,
> 
> _______________________________________________
> noPoll mailing list
> noPoll en lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll


-- 
Francis Brosnan Blázquez  -  ASPL
http://www.asplhosting.com/
http://www.aspl.es/
https://twitter.com/aspl_es
https://twitter.com/asplhosting
https://twitter.com/francisbrosnanb
https://es.linkedin.com/in/francis-brosnan-blázquez-1353a218

91 134 14 22 - 91 134 14 45 - 91 116 07 57

AVISO LEGAL
 
En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL).
 
ASPL garantiza que los datos serán tratados con la finalidad de mantener
las oportunas relaciones comerciales o promocionales con usted o la
entidad que usted representa. No obstante, usted puede ejercitar sus
derechos de acceso, rectificación, cancelación y oposición dispuestos en
la mencionada Ley Orgánica, notificándolo por escrito a ASPL -
Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de Henares
(Madrid).

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20170216/081c7516/attachment.html>


Más información sobre la lista de distribución noPoll