mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	use SO_KEEPALIVE option on all sockets do detect dead sockets
This commit is contained in:
		| @@ -112,6 +112,7 @@ Jori Hamalainen | ||||
|  | ||||
| owagner | ||||
|   for pointing out a problem with the encrypted channel switching fix | ||||
|   for suggesting use of SO_KEEPALIVE socket option to detect dead sockets | ||||
|  | ||||
| Joachim K<>nig-Baltes | ||||
|   for fixing Min/MaxPriority parsing | ||||
|   | ||||
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -1,6 +1,8 @@ | ||||
| VDR Plugin 'streamdev' Revision History | ||||
| --------------------------------------- | ||||
|  | ||||
| - use SO_KEEPALIVE option on all sockets do detect dead sockets (thanks to | ||||
|   owagner) | ||||
| - enable PatFilter for externremux, so VLC can be used as remuxer or client | ||||
| - fixed insecure format strings in LSTX handlers (thanks to Anssi Hannula) | ||||
| - updated Finish translation (thanks to Rolf Ahrenberg) | ||||
|   | ||||
| @@ -124,6 +124,10 @@ bool cTBSocket::Accept(const cTBSocket &Listener) { | ||||
| 	if (::getsockname(socket, (struct sockaddr*)&m_LocalAddr, &addrlen) == -1) | ||||
| 		return false; | ||||
| 	 | ||||
| 	int sol=1; | ||||
| 	// Ignore possible errors here, proceed as usual | ||||
| 	::setsockopt(socket, SOL_SOCKET, SO_KEEPALIVE, &sol, sizeof(sol));  | ||||
|  | ||||
| 	if (!cTBSource::Open(socket)) | ||||
| 		return false; | ||||
| 	 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user