ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Суббота
23 ноября
1473603 Топик полностью
IBAH (31.10.2024 16:51, просмотров: 118) ответил IBAH на Насяльника, сокетов осеня не хватает.
Поигрался еще. Пришел к выводу что ESP8266, отфутболивает браузер слишком жестко. 

Если создать разрешить 5 соединений, а отвечать только по двум загрузка проходит успешно. Браузер переспрашивает как положено.

Короче главное, чтобы браузер не ткнулся в шестое соединение, тогда он сразу становится в ошибку NS_ERROR_NET_RESET, и эту ссылку не закачивает.


Долбанные китайцы! Сколько труда на полку.


вот расшифровал обмен при загрузке страницы страница 4 гифки, и два html кадра (в расшифровке скобки мои, так удобнее разбирать )

//
0,CONNECT                                                                       
                                                                                
{+IPD,0,408,192.168.0.101,49987:GET / HTTP/1.1                                   
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/w
ebp,;q=0.8                                                                   
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Upgrade-Insecure-Requests: 1                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache }                                                        
                                                                                
{AT+CIPSEND=0,511   //Отправка index.htm                                                             
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK}                                                                         
{AT+CIPSEND=0,511   //Отправка index.htm                                                               
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK}                                                                         
{AT+CIPSEND=0,511  //Отправка index.htm  //Продолжение следует                                                                
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes}                                                                  
1,CONNECT                                                                       
                                                                                
{+IPD,1,356,192.168.0.101,49988:GET /gif1.gif HTTP/1.1                           
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache}                                                         
                                                                                
                                                                                
SEND OK  ////Отправка index.htm Продолжение  AT+CIPSEND=0,511                                                                       
2,CONNECT                                                                       
3,CONNECT                                                                       
                                                                                
{+IPD,2,445,192.168.0.101,49989:GET /zn1.htm HTTP/1.1   //не отвечаем                         
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/w
ebp,;q=0.8                                                                   
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Upgrade-Insecure-Requests: 1                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache}
                                                                                
                                                                                
{+IPD,3,356,192.168.0.101,49990:GET /gif2.gif HTTP/1.1  //не отвечаем                           
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache}                                                         
                                                                                
{AT+CIPSEND=0,389 //Отправка index.htm                                                                 
                                                                                
OK                                                                              
>                                                                               
Recv 389 bytes                                                                  
                                                                                
SEND OK}                                                                         
                                                                                
{+IPD,0,356,192.168.0.101,49987:GET /gif3.gif HTTP/1.1                           
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache}                                                         
                                                                                
4,CONNECT                                                                       
                                                                                
{+IPD,4,356,192.168.0.101,49991:GET /gif4.gif HTTP/1.1  //не отвечаем                         
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache }                                                        
                                                                                
{AT+CIPSEND=1,511    //Отправка gif1.gif                                                            
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=1,511    //Отправка gif1.gif                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK}                                                                         
{AT+CIPSEND=1,511    //Отправка gif1.gif                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=1,511    //Отправка gif1.gif                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=1,62     //Отправка gif1.gif                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 62 bytes                                                                   
                                                                                
SEND OK}                                                                         
                                                                                
{+IPD,1,445,192.168.0.101,49988:GET /zn2.htm HTTP/1.1                            
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/w
ebp,;q=0.8                                                                   
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Upgrade-Insecure-Requests: 1                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache }                                                        
                                                                                
{AT+CIPSEND=0,511   //Отправка gif3.gif                                                             
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=0,511   //Отправка gif3.gif                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=0,14    //Отправка gif3.gif                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 14 bytes                                                                   
                                                                                
SEND OK}                                                                         
                                                                                
{+IPD,0,359,192.168.0.101,49987:GET /favicon.ico HTTP/1.1                        
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache  }                                                       
                                                                                
{AT+CIPSEND=1,84    //Отправка zn2.htm                                                            
                                                                                
OK                                                                              
>                                                                               
Recv 84 bytes                                                                   
                                                                                
SEND OK}                                                                         
{AT+CIPSEND=0,511   //Отправка favicon.ico                                                            
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=0,511   //Отправка favicon.ico                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK}                                                                         
{AT+CIPSEND=0,197   //Отправка favicon.ico //Продолжение следует                                                             
                                                                                
OK                                                                              
>                                                                               
Recv 197 bytes}                                                                  
3,CLOSED                                                                        
2,CLOSED                                                                        
                                                                                
{+IPD,1,356,192.168.0.101,49988:GET /gif2.gif HTTP/1.1                           
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache }                                                        
                                                                                
                                                                                
SEND OK   ////Отправка favicon.ico Продолжение AT+CIPSEND=0,197                                                                      
                                                                                
{+IPD,0,445,192.168.0.101,49987:GET /zn1.htm HTTP/1.1                            
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/w
ebp,;q=0.8                                                                   
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Upgrade-Insecure-Requests: 1                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache  }                                                       
                                                                                
{AT+CIPSEND=1,511 //Отправка gif2.gif   //Продолжение следует                                                                
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes}                                                                  
4,CLOSED                                                                        
                                                                                
SEND OK //Отправка gif2.gif// Продолжение AT+CIPSEND=1,511                                                                        
{AT+CIPSEND=1,511 //Отправка gif2.gif //Продолжение следует                                                               
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes }                                                                 
2,CONNECT                                                                       
                                                                                
{+IPD,2,356,192.168.0.101,49992:GET /gif4.gif HTTP/1.1                           
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache  }                                                       
                                                                                
                                                                                
SEND OK //Продолжение AT+CIPSEND=1,511                                                                        
{AT+CIPSEND=1,511 //Отправка gif2.gif //Продолжение следует                                                                  
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes }                                                                 
3,CONNECT                                                                       
                                                                                
SEND OK     //Продолжение AT+CIPSEND=1,511                                                                    
{AT+CIPSEND=1,502 //Отправка gif2.gif                                                                
                                                                                
OK                                                                              
>                                                                               
Recv 502 bytes                                                                  
                                                                                
SEND OK  }                                                                       
{AT+CIPSEND=0,84  //Отправка zn1.htm                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 84 bytes                                                                   
                                                                                
SEND OK                                                                         
2,CLOSED }                                                                       
                                                                                
{+IPD,1,356,192.168.0.101,49988:GET /gif4.gif HTTP/1.1                           
Host: 192.168.0.1                                                               
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fi
refox/115.0                                                                     
Accept: image/avif,image/webp,                                               
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3                            
Accept-Encoding: gzip, deflate                                                  
Connection: keep-alive                                                          
Referer: http://192.168.0.1/                                                    
Pragma: no-cache                                                                
Cache-Control: no-cache   }                                                      
                                                                                
{AT+CIPSEND=1,511 //Отправка gif4.gif      //Продолжение следует                                                                
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes }                                                                 
3,CLOSED                                                                        
                                                                                
SEND OK    //Продолжение AT+CIPSEND=1,511                                                                     
{AT+CIPSEND=1,511 //Отправка gif4.gif                                                               
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=1,511 //Отправка gif4.gif                                                               
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK }                                                                        
{AT+CIPSEND=1,511  //Продолжение следует                                                              
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes }                                                                 
0,CLOSED                                                                        
                                                                                
SEND OK //Отправка gif4.gif //Продолжение AT+CIPSEND=1,511                                                                        
{AT+CIPSEND=1,511 //Отправка gif4.gif                                                                  
                                                                                
OK                                                                              
>                                                                               
Recv 511 bytes                                                                  
                                                                                
SEND OK}                                                                         
{AT+CIPSEND=1,278 //Отправка gif4.gif                                                                  
                                                                                
OK                                                                              
>                                                                               
Recv 278 bytes                                                                  
                                                                                
SEND OK }                                                                        
1,CLOSED 


//