• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Socket Channel .socket vs read issue

 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Sir/madam

Wrt to the socketChannel, we have been facing recently a peculiar issue.
Our Application is a client, which sends request to the thirdparty system transaction Request via socket
the application is in live and it was working perfectly. but recently we face issue

a. We are able to send request to the Server
b. They are able to process request and while sending response, they are flusing and get, client has closed the connection.

Investigation
a. For some transaction -Balance we are able to process response immediately
b. For some, we are getting this issue when server Application trying to write to our client.

Please find the code




Socket creation code


What could be the issue for
Is it soTimeout, causing the issue 30 sec, post which server is not able to write the date

Currently Server team is saying, while sending response flush, they are getting client has closed the socket

Kindly help us with the solution.


 
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic