Fixed usage of wrong internal socket for NPN
Improve performance if NPN is not supported by app protocol