Search code examples
socketstcpgoogle-chrome-apperror-code

chrome.sockets API tcp error codes?


I'm developping a HTTP serveur as a Chrome App but I don't know how to interpret error codes caught in:

chrome.sockets.tcp.onReceiveError.addListener( (info) => 
  console.error( "Error on Receive: socket=%s, resultCode=%s", info.socketId, info.resultCode )
)

Sometimes I get the following error with info.resultCode = -100 (when the connection is timed out).

I've found some Unix/Sockets codes but they don't seem to match, and I found nothing on Google's Chrome App Dev website.

This one and this one could match but I'm not sure. For example, with that commented error list, I can guess the error 10064 is corresponding to my -100 resultCode.

Can someone direct me to the right documentation?


Solution

  • It looks like there is a list of them defined in net_error_list.h