Skip to content

Httpsqs4j 客户端的 HttpsqsStatus 正则bug #24

Description

@GoogleCodeExporter
修改为:
protected static Pattern pattern = Pattern.compile("HTTP Simple Queue Service 
v(.+?)\\s(?:.+?)\\sQueue Name: (.+?)\\sMaximum number of queues: (\\d+)\\sPut 
position of queue \\((\\d+)\\w+ lap\\): (\\d+)\\sGet position of queue 
\\((\\d+)\\w+ lap\\): (\\d+)\\sNumber of unread queue: (\\d+)");

主要当put第二轮的时候\\d+nd 而原来在正则还是匹配 
\\d+st改成 (\\d+)\\w+:
Queue Name: low
Maximum number of queues: 1000000
Put position of queue (2nd lap): 29068
Get position of queue (1st lap): 997815
Number of unread queue: 31253

Original issue reported on code.google.com by wangchu...@gmail.com on 21 Oct 2011 at 3:27

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions