mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Allowing read() to continue after socket close if data is still available
Only for modules that buffer the data internally
This commit is contained in:
		@@ -135,7 +135,7 @@ public:
 | 
			
		||||
    TINY_GSM_YIELD();
 | 
			
		||||
    at->maintain();
 | 
			
		||||
    size_t cnt = 0;
 | 
			
		||||
    while (cnt < size && sock_connected) {
 | 
			
		||||
    while (cnt < size) {
 | 
			
		||||
      size_t chunk = TinyGsmMin(size-cnt, rx.size());
 | 
			
		||||
      if (chunk > 0) {
 | 
			
		||||
        rx.get(buf, chunk);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user