• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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.

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.

    Bookmark Topic Watch Topic
  • New Topic