You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think some of the default options passed onto the TCP Socket should be removed. The reason is that you can't overwrite them, you can only append to them.
Currently, the options (in include/gen_tcp_server.hrl) are:
Your option requesting to receive the packet line by line will be most likely ignored. I would suggest removing at least the {packet, raw} option; perhaps the binary option should stay, as it is most likely used by everyone anyway :) Still, it might be a good idea to remove it as well, just in case it confuses someone who's trying to receive lists (what would even happen if you started a TCP socket with both list and binary options at the same time?)
The text was updated successfully, but these errors were encountered:
I think some of the default options passed onto the TCP Socket should be removed. The reason is that you can't overwrite them, you can only append to them.
Currently, the options (in
include/gen_tcp_server.hrl
) are:For example, if you start a gen_tcp_server like this:
Your option requesting to receive the packet line by line will be most likely ignored. I would suggest removing at least the
{packet, raw}
option; perhaps thebinary
option should stay, as it is most likely used by everyone anyway :) Still, it might be a good idea to remove it as well, just in case it confuses someone who's trying to receive lists (what would even happen if you started a TCP socket with both list and binary options at the same time?)The text was updated successfully, but these errors were encountered: