I am trying to create an api using Node.js and Restify. I was trying out the module and came across a problem. I setup a barebones server with a test endpoint and it seems to work perfectly on localhost:8080/test. I tried test https://localhost:8080/test on postman but this makes my restify server hang. During this period, I am unable to make other requests to the server for example, querying the regular localhost:8080/test endpoint. I haven't setup the key and certificate requirement for https and I am aware that this is the problem. I just wanted to know if this is a standard behavior for restify if something unexpected occurs. If I were to deploy this server in production and one client were to make an https call, then this behavior would block requests from all other clients until there is someform of timeout. I am wanting to know what the reason for this is. Thank you!
via Chaitanya Pilaka
No comments:
Post a Comment