Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Program not getting response or failed to send request  RSS feed

Darren Cheong
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've been trying to solve this for a while now but I am lost, I am actually trying to make a middleware application that allows a frontend client to connect to it and send messages to it and my application will route the message to a backend client connected to it.

I've currently implemented a model where I have two sockets, a frontend one and a backend one, messages from the frontend are formatted to a format suitable for the backend , sent out and another thread listens to responses from the backend and replies it to the front end accordingly.

I've tried using this setup with a pseudo backend and it seems to work correctly althoug the backend is operating on my local dev network. Here's the strange thing though, when I try to implement it with the real backend (which is written in fortran running on openvms), only a few times does the routed messages get out and come back with a response, and when that happens , the next few messages routed are guaranteed to work but will stop working in the end also.

I'm just wondering what could cause something like this. The data that does come back is what I expect and correct but it is really strange that it happens sometimes and not all the time.

I really hope someone could help me out with this as I've been pulling my hair out trying to find out why...


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!