[Twisted-Python] Weekly Bug Summary

2020-12-05 Thread trac



Bug summary
__
Summary for 2020-11-29 through 2020-12-06
  Opened Closed  Total Change
Enhancements:  0  0   1465 +0
Defects:   1  0994 +1
Tasks: 0  0 95 +0
Regressions:   0  0  1 +0
Total: 1  0   2559 +1

|== Type Changes   |== Priority Changes   |== Component Changes   
|Defect:  +1   |Normal:  +1   |Names:  +1 



Total Tickets
Open Tickets



New / Reopened Bugs
__
= Normal =
[#10062] Most dns client requests fail (opened by taroved)
defect  names  http://twistedmatrix.com/trac/ticket/10062



Closed Bugs
__



Ticket Lifetime Stats
__
Oldest open ticket - [#50] conch command-line client doesn't work in win32 (since 2003-07-12 14:41:06).
Newest open ticket - [#10062] Most dns client requests fail (since 2020-12-04 16:18:55.560448).

Mean open ticket age: 2964 days, 17:29:19.196532.
Median: 2956 days, 15:57:56.561318.
Standard deviation: 1481 days, 21:18:18.659386.
Interquartile range: 2175 days, 17:31:38.430637.

Mean time between ticket creation and ticket resolution: 615 days, 7:27:57.464950.
Median: 58 days, 13:21:23.
Standard deviation is 1018 days, 11:44:17.084129.
The interquartile range is 812 days, 11:29:54.

Mean time spent in review: 101 days, 5:40:30.200133.
Median: 4 days, 18:08:10.
Standard deviation: 488 days, 6:24:32.117443.
Interquartile range: 23 days, 9:50:34.

Mean number of times a ticket is reviewed: 1.78859964093.
Median: 1
Standard deviation: 1.41015018091.
Interquartile range: 1.


Contributor Stats
__
In the last 4 weeks,
6 unique ticket reporters
3 unique ticket reviewers
4 unique ticket resolvers
In the last 24 weeks,
36 unique ticket reporters
10 unique ticket reviewers
18 unique ticket resolvers
In the last 48 weeks,
58 unique ticket reporters
12 unique ticket reviewers
26 unique ticket resolvers





___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Current twisted dns client just doesn't work

2020-12-05 Thread Tom Most
Yes, that would be an improvement on the current behavior, though the ideal 
behavior is to query both A and  simultaneously, returning the union of 
their results.

---Tom

On Sat, Dec 5, 2020, at 2:06 PM, spam tam wrote:
> Ok. Instead ANY I can query A and if A doesn't provide IP then query 
> 
> On Sat, Dec 5, 2020 at 5:07 AM Tom Most  wrote:
> >
> > Why do an ANY query at all? As Glyph noted[1] the correct solution is to 
> > query A and  concurrently. If you want a temporary hack wouldn't the 
> > most straightforward thing be to query just A instead of ANY + A?
> >
> > ---Tom
> >
> > [1]: https://twistedmatrix.com/trac/ticket/9691#comment:5
> >
> > On Fri, Dec 4, 2020, at 5:37 PM, spam tam wrote:
> > > Twisted provide ability to run dns client in the same thread as main
> > > twisted application. But it just doesn't work.
> > >
> > > I created pull request which fix the problem:
> > > https://github.com/twisted/twisted/pull/1488
> > >
> > > I would like to know if twisted community knows about it. This client
> > > doesn't work for years. I think that we should fix the problem.
> > >
> > > Twisted dns client should work. What do you think? I think we should
> > > discuss the problem. DNS client protocol provide ANY, A, 
> > > requests. Current dns ANY request is not enough. My code add A dns
> > > request after current ANY request.
> > >
> > > Is this enough fix or anybody think it's not enough or may be we
> > > should find another solution. I think twisted framework should work
> > >
> > > ___
> > > Twisted-Python mailing list
> > > Twisted-Python@twistedmatrix.com
> > > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> > >
> >
> > ___
> > Twisted-Python mailing list
> > Twisted-Python@twistedmatrix.com
> > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Current twisted dns client just doesn't work

2020-12-05 Thread spam tam
Ok. Instead ANY I can query A and if A doesn't provide IP then query 

On Sat, Dec 5, 2020 at 5:07 AM Tom Most  wrote:
>
> Why do an ANY query at all? As Glyph noted[1] the correct solution is to 
> query A and  concurrently. If you want a temporary hack wouldn't the most 
> straightforward thing be to query just A instead of ANY + A?
>
> ---Tom
>
> [1]: https://twistedmatrix.com/trac/ticket/9691#comment:5
>
> On Fri, Dec 4, 2020, at 5:37 PM, spam tam wrote:
> > Twisted provide ability to run dns client in the same thread as main
> > twisted application. But it just doesn't work.
> >
> > I created pull request which fix the problem:
> > https://github.com/twisted/twisted/pull/1488
> >
> > I would like to know if twisted community knows about it. This client
> > doesn't work for years. I think that we should fix the problem.
> >
> > Twisted dns client should work. What do you think? I think we should
> > discuss the problem. DNS client protocol provide ANY, A, 
> > requests. Current dns ANY request is not enough. My code add A dns
> > request after current ANY request.
> >
> > Is this enough fix or anybody think it's not enough or may be we
> > should find another solution. I think twisted framework should work
> >
> > ___
> > Twisted-Python mailing list
> > Twisted-Python@twistedmatrix.com
> > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> >
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Injecting 400 errors via HTTP Proxy

2020-12-05 Thread Adi Roiban
Hi Vlad

On Fri, 4 Dec 2020 at 02:11, Vlad Petric  wrote:

> Hi Everyone,
>
> I'd like to randomly inject 400 errors via the HTTP Proxy.
>
> I'm testing the robustness of an application that performs a lot of HTTP
> GETs. I am using the basic http web proxy, and  I need to modify it to
> randomly insert some errors.
>
> Should I be using my own class derived from ProxyRequest, and override
> process()? If that's the case, how would I be injecting 400s?
>
> Thank you so much!
> Vlad, a twisted n00b
> ___
>

Is this a forward or reverse proxy?

ProxyRequest is just like any request... you can set headers, response
code, write content to it...

Here is an example:

https://gist.github.com/adiroiban/ef9dfd2cce5c59b70e1bc0600b58adeb

-- 
Adi Roiban
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python