Senyi Li

Results 10 comments of Senyi Li

It happens that I met the similar question.... My code save a TCP socket once, and try restoring servaral times. **Here is part of my code:** ```c socket_fd = socket(AF_INET,...

> @EgodPrime @lijunqiang123 Could you provide strace logs? If you are able to create a reproducer that I can use in my environment, it would be ideal. Thanks for your...

> Thanks a lot! it helps! I found that the root cause of this problem is `getsockname()` does not work correctly sometimes(return wrong address such as 0.0.0.0), and I fixed...

> @EgodPrime do you block packets to a restore sockets? We expect that a socket doesn't received any packets while it is being repaired. yes, I do block packets by...

@avagin still not work. Here is my code: ```c /* run remote server outside */ while(1){ if(first_run){ sockfd = socket(AF_INET, SOCK_STREAM, 0); int val=1; setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&val,sizeof(val)); setsockopt(sockfd,SOL_SOCKET,SO_REUSEPORT,&val,sizeof(val)); serv_addr.sin_family = AF_INET; serv_addr.sin_port...

> Hi @doubleBeans , thanks for your interest in our work! We are cleaning up the code and data of the API matcher, and will release it soon. I am...

Similar edge cases are well handled in `nltk.translate.chrf_score` and `nltk.translate.gleu_score.corpus_gleu`, where both large values and non-positive values are ok.

commit https://github.com/nltk/nltk/pull/3450/commits/9fb361396bde97f767735d747806c2333433f15f has a failure on `pre-commit`. It seems my commit does not trigger `pre-commit` automatically; I've fixed the formatting issue and merged the latest commit of the `develop` branch....

@ekaf Thank you for your response. I agree with your perspective. However, another point I raised earlier is that users may encounter unfamiliar or unpredictable usage scenarios. In such cases,...

Here are my suggested fixes: ## Possible Fix 1 Enhance docstring only: ```python def elementtree_indent(elem, level=0): """ ... .. warning:: Using very large values for `level` (e.g., > 1000) may...