• Post Reply Bookmark Topic Watch Topic
  • New Topic

myServerSocket.accept() terminating on linux  RSS feed

 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I am busy building a server that listens on port 1109 on a linux machine. When I run the code on a windows machine I have no problems and the server runs indefinitely. When I run the same server on our linux web server, the process gets to the .accept() call where is waits for about 3-5 minutes before terminating without error or exception.

Can anyone give me some idea as to what I should be looking at in order to get this server to run indefinitely?

Many kind regards,
Rachel
 
Elliotte Rusty Harold
author
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No error? No exception? Is there perhaps a core dump?

That is weird, though. How does the server normally shut down? Is it possible something on Linux is accidentally trigerring the shutdown mechanism?
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

Finally this morning the problem was resolved by talking to the admin who looks after our linux box. It turns out that there was a process checker running that didn't like our process listening for incoming connections.

So thankfully it's now back to testing!

Thanks!
Rachel
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rachel Swailes:
It turns out that there was a process checker running that didn't like our process listening for incoming connections.


Rachel, do u mean that that cheker process can shutdown our process which is listening for inbound connections, if it takes a certain idle period? Or is it prohibited to open such arbitrary port on Linux?
 
Paul Santa Maria
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, Linux has no such arbitrary restrictions.

It sounds like Rachel's organization has a daemon that seeks out ... and has privileges to kill ... any "suspicious" process it doesn't know about.

Is that basically correct, Rachel?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Santa Maria:
It sounds like Rachel's organization has a daemon that seeks out ... and has privileges to kill ... any "suspicious" process it doesn't know about.


Do you mean that the daemon running to check the suspicious processess not from the Linux OS itself? Is it kinda third-party tool to check the suspicious processes installed by Rachel himself?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!