Click here to Skip to main content
15,799,018 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt20-Jun-18 22:04
professionalJochen Arndt20-Jun-18 22:04 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu21-Jun-18 1:55
manoharbalu21-Jun-18 1:55 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt21-Jun-18 2:31
professionalJochen Arndt21-Jun-18 2:31 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu21-Jun-18 20:36
manoharbalu21-Jun-18 20:36 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Victor Nijegorodov21-Jun-18 21:35
Victor Nijegorodov21-Jun-18 21:35 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt21-Jun-18 21:55
professionalJochen Arndt21-Jun-18 21:55 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu25-Jun-18 20:04
manoharbalu25-Jun-18 20:04 
AnswerRe: TCP/IP Socket connectivity issue in Internet Pin
jschell23-Jun-18 5:52
jschell23-Jun-18 5:52 
Just to be clear
1. Works in environment A
2. Doesn't work in environment B

Obviously then the environment, not your code, is where the problem originates.

As one possibility there is a firewall rule that is disconnecting/dropping the connection after 2 hours. If that is the problem then the solution is to either fix the rule or alter your application such that it recreates the connection more frequently than the rule disconnects. So say every hour although I might go with less than that. That said though defensive programming would suggest that the connection could be lost, arbitrarily, for any number of reasons so you should be attempting to restore the connection anyways.

FYI might want to verify "crash" versus exit. I worked with one system where it turned out there was some sort of monitor that was externally terminating the application after a certain amount of time. As a windows client app all threads should have a generic global system catch which catches "system" exceptions and logs them. Also normal requests to exit should be logged as well.
Questioninstalled apps Pin
john563217-Jun-18 21:22
john563217-Jun-18 21:22 
AnswerRe: installed apps Pin
Victor Nijegorodov17-Jun-18 21:45
Victor Nijegorodov17-Jun-18 21:45 
GeneralRe: installed apps Pin
john563217-Jun-18 21:53
john563217-Jun-18 21:53 
AnswerRe: installed apps Pin
User 742933817-Jun-18 22:33
professionalUser 742933817-Jun-18 22:33 
GeneralRe: installed apps Pin
john563217-Jun-18 23:58
john563217-Jun-18 23:58 
AnswerRe: installed apps Pin
User 742933818-Jun-18 0:04
professionalUser 742933818-Jun-18 0:04 
QuestionChange Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath14-Jun-18 3:13
Gopi Nath14-Jun-18 3:13 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933818-Jun-18 0:37
professionalUser 742933818-Jun-18 0:37 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath18-Jun-18 2:25
Gopi Nath18-Jun-18 2:25 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933818-Jun-18 2:28
professionalUser 742933818-Jun-18 2:28 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath18-Jun-18 2:42
Gopi Nath18-Jun-18 2:42 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Richard Andrew x6420-Jun-18 15:23
professionalRichard Andrew x6420-Jun-18 15:23 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933820-Jun-18 20:40
professionalUser 742933820-Jun-18 20:40 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath20-Jun-18 21:22
Gopi Nath20-Jun-18 21:22 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath20-Jun-18 21:19
Gopi Nath20-Jun-18 21:19 
Questioncreate_task with asynchronous unwrapping PPL Pin
Daniel Ramnath12-Jun-18 9:58
Daniel Ramnath12-Jun-18 9:58 
GeneralRe: create_task with asynchronous unwrapping PPL Pin
Richard MacCutchan12-Jun-18 10:03
mveRichard MacCutchan12-Jun-18 10:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.