mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	Block means block.
This commit is contained in:
		@@ -535,6 +535,15 @@ static int libssh2_blocking_read(LIBSSH2_SESSION *session, unsigned char *buf, s
 | 
				
			|||||||
	size_t bytes_read = 0;
 | 
						size_t bytes_read = 0;
 | 
				
			||||||
	int polls = 0;
 | 
						int polls = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef WIN32
 | 
				
			||||||
 | 
						fcntl(session->socket_fd, F_SETFL, 0);
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							u_long block = FALSE;
 | 
				
			||||||
 | 
							ioctlsocket(session->socket_fd, FIONBIO, &block);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	while (bytes_read < count) {
 | 
						while (bytes_read < count) {
 | 
				
			||||||
		int ret;
 | 
							int ret;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user