1

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?

5
  • Please explain your latest tag edit. Commented Jan 18, 2016 at 22:16
  • @Xan I beleive it can concern Chrome Extension developers too. Commented Jan 19, 2016 at 8:28
  • It cannot: chrome.sockets is only available in Apps Commented Jan 19, 2016 at 8:30
  • @Xan I know. I was speaking about Extension developers, not extensions. Commented Jan 19, 2016 at 8:33
  • @Xan Why do you delete the tcp tag ?? Commented Jan 19, 2016 at 8:39

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.